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

Methods

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

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=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

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=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.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

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=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

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>

// was this page useful?