public StateMachinePersisted( IEventPersistedStore <TKey, TState, TEvent, TParam, TCtx, TUserId> eventPersistedStore, IRetryService retryService) { this.eventPersistedStore = eventPersistedStore; this.retryService = retryService; }
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) { }
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; }