arolariu.Backend.Domain.Invoices.Services.Orchestration.MerchantService
arolariu.Backend.Domain.Invoices
arolariu.Backend.Domain.Invoices.Services.Orchestration.MerchantService Namespace
Classes
MerchantOrchestrationService Class
This class represents the merchant orchestration service.
public class MerchantOrchestrationService : arolariu.Backend.Domain.Invoices.Services.Orchestration.MerchantService.IMerchantOrchestrationService
Inheritance System.Object 🡒 MerchantOrchestrationService
Implements IMerchantOrchestrationService
Constructors
MerchantOrchestrationService(IMerchantStorageFoundationService, ILoggerFactory) Constructor
Public constructor.
public MerchantOrchestrationService(arolariu.Backend.Domain.Invoices.Services.Foundation.MerchantStorage.IMerchantStorageFoundationService merchantStorage, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
Parameters
merchantStorage IMerchantStorageFoundationService
loggerFactory Microsoft.Extensions.Logging.ILoggerFactory
Fields
MerchantOrchestrationService.logger Field
private readonly ILogger<IMerchantOrchestrationService> logger;
Field Value
Microsoft.Extensions.Logging.ILogger<IMerchantOrchestrationService>
MerchantOrchestrationService.merchantStorage Field
private readonly IMerchantStorageFoundationService merchantStorage;
Field Value
IMerchantStorageFoundationService
Methods
MerchantOrchestrationService.Classify(Exception) Method
private System.Exception Classify(System.Exception exception);
Parameters
exception System.Exception
Returns
MerchantOrchestrationService.CreateAndLogDependencyException(Exception) Method
private arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Exceptions.Outer.Orchestration.MerchantOrchestrationServiceDependencyException CreateAndLogDependencyException(System.Exception exception);
Parameters
exception System.Exception
Returns
MerchantOrchestrationServiceDependencyException
MerchantOrchestrationService.CreateAndLogDependencyValidationException(Exception) Method
private arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Exceptions.Outer.Orchestration.MerchantOrchestrationServiceDependencyValidationException CreateAndLogDependencyValidationException(System.Exception exception);
Parameters
exception System.Exception
Returns
MerchantOrchestrationServiceDependencyValidationException
MerchantOrchestrationService.CreateAndLogServiceException(Exception) Method
private arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Exceptions.Outer.Orchestration.MerchantOrchestrationServiceException CreateAndLogServiceException(System.Exception exception);
Parameters
exception System.Exception
Returns
MerchantOrchestrationServiceException
MerchantOrchestrationService.CreateAndLogValidationException(Exception) Method
private arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Exceptions.Outer.Orchestration.MerchantOrchestrationServiceValidationException CreateAndLogValidationException(System.Exception exception);
Parameters
exception System.Exception
Returns
MerchantOrchestrationServiceValidationException
MerchantOrchestrationService.CreateMerchantObject(Merchant, Nullable<Guid>, CancellationToken) Method
Creates a merchant object.
public System.Threading.Tasks.Task CreateMerchantObject(arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant merchant, System.Nullable<System.Guid> parentCompanyId=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
merchant Merchant
parentCompanyId System.Nullable<System.Guid>
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Implements CreateMerchantObject(Merchant, Nullable<Guid>, CancellationToken)
Returns
MerchantOrchestrationService.DeleteMerchantObject(Guid, Nullable<Guid>, CancellationToken) Method
Deletes a merchant object.
public System.Threading.Tasks.Task DeleteMerchantObject(System.Guid identifier, System.Nullable<System.Guid> parentCompanyId=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
identifier System.Guid
parentCompanyId System.Nullable<System.Guid>
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Implements DeleteMerchantObject(Guid, Nullable<Guid>, CancellationToken)
Returns
MerchantOrchestrationService.ReadAllMerchantObjects(Guid, CancellationToken) Method
Reads all merchant objects.
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant>> ReadAllMerchantObjects(System.Guid parentCompanyId, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
parentCompanyId System.Guid
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Implements ReadAllMerchantObjects(Guid, CancellationToken)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Merchant>>
MerchantOrchestrationService.ReadMerchantObject(Guid, Nullable<Guid>, CancellationToken) Method
Reads a merchant object.
public System.Threading.Tasks.Task<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant> ReadMerchantObject(System.Guid identifier, System.Nullable<System.Guid> parentCompanyId=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
identifier System.Guid
parentCompanyId System.Nullable<System.Guid>
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Implements ReadMerchantObject(Guid, Nullable<Guid>, CancellationToken)
Returns
System.Threading.Tasks.Task<Merchant>
MerchantOrchestrationService.TryCatchAsync(CallbackFunctionForMerchant) Method
private System.Threading.Tasks.Task<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant> TryCatchAsync(arolariu.Backend.Domain.Invoices.Services.Orchestration.MerchantService.MerchantOrchestrationService.CallbackFunctionForMerchant callbackFunction);
Parameters
callbackFunction CallbackFunctionForMerchant()
Returns
System.Threading.Tasks.Task<Merchant>
MerchantOrchestrationService.TryCatchAsync(CallbackFunctionForMerchantList) Method
private System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant>> TryCatchAsync(arolariu.Backend.Domain.Invoices.Services.Orchestration.MerchantService.MerchantOrchestrationService.CallbackFunctionForMerchantList callbackFunction);
Parameters
callbackFunction CallbackFunctionForMerchantList()
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Merchant>>
MerchantOrchestrationService.TryCatchAsync(CallbackFunctionWithNoReturn) Method
private System.Threading.Tasks.Task TryCatchAsync(arolariu.Backend.Domain.Invoices.Services.Orchestration.MerchantService.MerchantOrchestrationService.CallbackFunctionWithNoReturn callbackFunction);
Parameters
callbackFunction CallbackFunctionWithNoReturn()
Returns
MerchantOrchestrationService.UpdateMerchantObject(Merchant, Guid, Nullable<Guid>, CancellationToken) Method
Updates a merchant object.
public System.Threading.Tasks.Task<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant> UpdateMerchantObject(arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant updatedMerchant, System.Guid merchantIdentifier, System.Nullable<System.Guid> parentCompanyId=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
updatedMerchant Merchant
merchantIdentifier System.Guid
parentCompanyId System.Nullable<System.Guid>
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Implements UpdateMerchantObject(Merchant, Guid, Nullable<Guid>, CancellationToken)
Returns
System.Threading.Tasks.Task<Merchant>
Interfaces
IMerchantOrchestrationService Interface
This interface represents the merchant orchestration service.
public interface IMerchantOrchestrationService
Derived
↳ MerchantOrchestrationService
Methods
IMerchantOrchestrationService.CreateMerchantObject(Merchant, Nullable<Guid>, CancellationToken) Method
Creates a merchant object.
System.Threading.Tasks.Task CreateMerchantObject(arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant merchant, System.Nullable<System.Guid> parentCompanyId=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
merchant Merchant
parentCompanyId System.Nullable<System.Guid>
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Returns
IMerchantOrchestrationService.DeleteMerchantObject(Guid, Nullable<Guid>, CancellationToken) Method
Deletes a merchant object.
System.Threading.Tasks.Task DeleteMerchantObject(System.Guid identifier, System.Nullable<System.Guid> parentCompanyId=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
identifier System.Guid
parentCompanyId System.Nullable<System.Guid>
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Returns
IMerchantOrchestrationService.ReadAllMerchantObjects(Guid, CancellationToken) Method
Reads all merchant objects.
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant>> ReadAllMerchantObjects(System.Guid parentCompanyId, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
parentCompanyId System.Guid
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Merchant>>
IMerchantOrchestrationService.ReadMerchantObject(Guid, Nullable<Guid>, CancellationToken) Method
Reads a merchant object.
System.Threading.Tasks.Task<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant> ReadMerchantObject(System.Guid identifier, System.Nullable<System.Guid> parentCompanyId=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
identifier System.Guid
parentCompanyId System.Nullable<System.Guid>
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Returns
System.Threading.Tasks.Task<Merchant>
IMerchantOrchestrationService.UpdateMerchantObject(Merchant, Guid, Nullable<Guid>, CancellationToken) Method
Updates a merchant object.
System.Threading.Tasks.Task<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant> UpdateMerchantObject(arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant updatedMerchant, System.Guid merchantIdentifier, System.Nullable<System.Guid> parentCompanyId=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
updatedMerchant Merchant
merchantIdentifier System.Guid
parentCompanyId System.Nullable<System.Guid>
cancellationToken System.Threading.CancellationToken
Optional cancellation token to abort the operation.
Returns
System.Threading.Tasks.Task<Merchant>
Delegates
MerchantOrchestrationService.CallbackFunctionForMerchant() Delegate
private delegate System.Threading.Tasks.Task<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant> MerchantOrchestrationService.CallbackFunctionForMerchant();
Returns
System.Threading.Tasks.Task<Merchant>
MerchantOrchestrationService.CallbackFunctionForMerchantList() Delegate
private delegate System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Merchant>> MerchantOrchestrationService.CallbackFunctionForMerchantList();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Merchant>>
MerchantOrchestrationService.CallbackFunctionWithNoReturn() Delegate
private delegate System.Threading.Tasks.Task MerchantOrchestrationService.CallbackFunctionWithNoReturn();