Owneat Technical Guide main Help

Class LinkRestaurantToBillingPlatformCommandHandler

Namespace: Restaurant.Application.Requests.Restaurant
Assembly: Restaurant.Application.dll

public sealed class LinkRestaurantToBillingPlatformCommandHandler : IRequestHandler<LinkRestaurantToBillingPlatformCommand, Result<RestaurantAccountResponse>>

Inheritance

object ← LinkRestaurantToBillingPlatformCommandHandler

Implements

IRequestHandler<LinkRestaurantToBillingPlatformCommand, Result<RestaurantAccountResponse\>\>

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

LinkRestaurantToBillingPlatformCommandHandler

public LinkRestaurantToBillingPlatformCommandHandler(IRestaurantRepository restaurantRepository, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork, IBillingPlatformAccountService billingPlatformAccountService)

Parameters

restaurantRepository IRestaurantRepository

authorizationService IAuthorizationService

httpContextAccessor IHttpContextAccessor

unitOfWork IUnitOfWork

billingPlatformAccountService IBillingPlatformAccountService

Methods

Handle\(LinkRestaurantToBillingPlatformCommand, CancellationToken\)

Handles a request

public Task<Result<RestaurantAccountResponse>> Handle(LinkRestaurantToBillingPlatformCommand command, CancellationToken cancellationToken)

Parameters

command LinkRestaurantToBillingPlatformCommand

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result< RestaurantAccountResponse \>\>

Response from the request

Last modified: 21 May 2024