Skip to main content

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​

System.Exception

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, System.Threading.CancellationToken cancellationToken);

Parameters​

merchant Merchant

parentCompanyId System.Nullable<System.Guid>

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

Implements CreateMerchantObject(Merchant, Nullable<Guid>, CancellationToken)

Returns​

System.Threading.Tasks.Task

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, System.Threading.CancellationToken cancellationToken);

Parameters​

identifier System.Guid

parentCompanyId System.Nullable<System.Guid>

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

Implements DeleteMerchantObject(Guid, Nullable<Guid>, CancellationToken)

Returns​

System.Threading.Tasks.Task

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);

Parameters​

parentCompanyId System.Guid

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

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, System.Threading.CancellationToken cancellationToken);

Parameters​

identifier System.Guid

parentCompanyId System.Nullable<System.Guid>

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

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​

System.Threading.Tasks.Task

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, System.Threading.CancellationToken cancellationToken);

Parameters​

updatedMerchant Merchant

merchantIdentifier System.Guid

parentCompanyId System.Nullable<System.Guid>

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

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, System.Threading.CancellationToken cancellationToken);

Parameters​

merchant Merchant

parentCompanyId System.Nullable<System.Guid>

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

Returns​

System.Threading.Tasks.Task

IMerchantOrchestrationService.DeleteMerchantObject(Guid, Nullable<Guid>, CancellationToken) Method​

Deletes a merchant object.

System.Threading.Tasks.Task DeleteMerchantObject(System.Guid identifier, System.Nullable<System.Guid> parentCompanyId, System.Threading.CancellationToken cancellationToken);

Parameters​

identifier System.Guid

parentCompanyId System.Nullable<System.Guid>

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

Returns​

System.Threading.Tasks.Task

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);

Parameters​

parentCompanyId System.Guid

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

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, System.Threading.CancellationToken cancellationToken);

Parameters​

identifier System.Guid

parentCompanyId System.Nullable<System.Guid>

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

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, System.Threading.CancellationToken cancellationToken);

Parameters​

updatedMerchant Merchant

merchantIdentifier System.Guid

parentCompanyId System.Nullable<System.Guid>

cancellationToken System.Threading.CancellationToken

Cancellation token to abort the operation (required).

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();

Returns​

System.Threading.Tasks.Task

// was this page useful?