public StateMachinePersisted(
     IEventPersistedStore <TKey, TState, TEvent, TParam, TCtx, TUserId> eventPersistedStore,
     IRetryService retryService)
 {
     this.eventPersistedStore = eventPersistedStore;
     this.retryService        = retryService;
 }
Пример #2
0
 public Context(
     long stateMachineKey,
     TestState currentState,
     uint size,
     IEventPersistedStore <long, TestState, TestEvent, string, Context, Guid> eventPersistedStore,
     IRetryService retryService,
     NewEventReceived <long, TestState, TestEvent, Context, string, Guid> newEventReceived,
     int maxDelay = 600) : base(
         stateMachineKey,
         currentState,
         size,
         eventPersistedStore,
         retryService,
         newEventReceived,
         maxDelay)
 {
 }
Пример #3
0
 public AbstractStateMachinePersistCtx(
     TKey stateMachineKey,
     TState currentState,
     uint size,
     IEventPersistedStore <TKey, TState, TEvent, TParam, TCtx, TUserId> eventPersistedStore,
     IRetryService retryService,
     NewEventReceived <TKey, TState, TEvent, TCtx, TParam, TUserId> newEventReceived,
     int maxDelay = 10 * 60)
 {
     this.CurrentState        = currentState;
     this.StateMachineKey     = stateMachineKey;
     this.skipQueue           = new SkipQueue <EventActionNodePersist <TKey, TState, TEvent, TParam, TCtx, TUserId> >(size);
     this.eventPersistedStore = eventPersistedStore;
     this.retryService        = retryService;
     this.maxDelay            = maxDelay;
     this.newEventReceived    = newEventReceived;
 }