Example #1
0
 public SagaContext(SagaCollaborator sagaCollaborator,
                    ILogger logger)
 {
     this._sagaCollaborator  = sagaCollaborator;
     this._sagaDataConverter = SagaGlobal.CurrentSagaDataConverter;
     this._sagaResolver      = SagaGlobal.CurrentSagaResolver;
     this._logger            = logger;
     this._sagaSession       = null;
 }
 public CollaboratorSagaWorker(ILogger <CollaboratorSagaWorker> logger,
                               SagaCollaborator sagaCollaborator,
                               ISagaResolver branchServiceResolver,
                               ISagaDataConverter sagaDataConverter)
 {
     this._logger                = logger;
     this._sagaCollaborator      = sagaCollaborator;
     this._branchServiceResolver = branchServiceResolver;
     this._sagaDataConverter     = sagaDataConverter;
 }
Example #3
0
 public SagaSession(string xid,
                    SagaCollaborator sagaCollaborator,
                    ISagaDataConverter sagaDataConverter,
                    ISagaResolver sagaResolver,
                    ILogger logger)
 {
     this._xid = xid;
     this._sagaCollaborator  = sagaCollaborator;
     this._sagaDataConverter = sagaDataConverter;
     this._sagaResolver      = sagaResolver;
     this._logger            = logger;
 }
Example #4
0
 public CollaboratorSagaStore(SagaCollaborator sagaCollaborator)
 {
     this._collaborator = sagaCollaborator;
 }