public MikadoContextProvider(IEventConfiguration configuration, IMemoizer memoizer, IEventPublisher publisher, IRunRules rulesRunner) { Configuration = configuration; Memoizer = memoizer; Publisher = publisher; _rulesRunner = rulesRunner; }
public MikdaoContextProvider(IEventConfiguration configuration, IMemoizer memoizer, IEventPublisher publisher, IKeyAccessor keyAccessor, IRunRules rulesRunner) { Configuration = configuration; Memoizer = memoizer; Publisher = publisher; KeyAccessor = keyAccessor; _rulesRunner = rulesRunner; }
public MikadoContext(TActor actor, IMemento <TActor> originalState, IKeyAccessor keyAccessor, IEventPublisher eventPublisher, IRunRules rulesRunner) { BrokenRules = new BrokenRulesCollection(); Events = new List <IEvent>(); Disposables = new List <IDisposable>(); Actor = actor; OriginalState = originalState; KeyAccessor = keyAccessor; Publisher = eventPublisher; _rulesRunner = rulesRunner; _rulesRunner.Subscribe(BrokenRules); }