hMailServer.Repository.MySQL.MessageRepository.DeleteRecipientAsync C# (CSharp) Метод

DeleteRecipientAsync() публичный Метод

public DeleteRecipientAsync ( Recipient recipient ) : System.Threading.Tasks.Task
recipient hMailServer.Entities.Recipient
Результат System.Threading.Tasks.Task
        public async Task DeleteRecipientAsync(Recipient recipient)
        {
            if (recipient == null)
                throw new ArgumentNullException(nameof(recipient));

            using (var sqlConnection = new MySqlConnection(_connectionString))
            {
                sqlConnection.Open();

                await sqlConnection.DeleteAsync(recipient);
            }
        }