Class PaymentChangeProcessor
- Namespace
- InSite.Application.Payments.Read
- Assembly
- Shift.Sdk.dll
Implements the process manager for Payment events.
public class PaymentChangeProcessor
- Inheritance
-
PaymentChangeProcessor
- Inherited Members
- Extension Methods
Remarks
A process manager (sometimes called a saga in CQRS) is an independent component that reacts to domain events in a cross-aggregate, eventually consistent manner. Time can be a trigger. Process managers are sometimes purely reactive, and sometimes represent workflows. From an implementation perspective, a process manager is a state machine that is driven forward by incoming events (which may come from many aggregates). Some states will have side effects, such as sending commands, talking to external web services, or sending emails.
Constructors
PaymentChangeProcessor(ICommander, IChangeQueue, IInvoiceSearch, IPaymentSearch, IApiRequestLogger)
public PaymentChangeProcessor(ICommander commander, IChangeQueue publisher, IInvoiceSearch invoices, IPaymentSearch payments, IApiRequestLogger apiRequestLogger)
Parameters
commanderICommanderpublisherIChangeQueueinvoicesIInvoiceSearchpaymentsIPaymentSearchapiRequestLoggerIApiRequestLogger