예제 #1
0
 public MikadoContextProvider(IEventConfiguration configuration, IMemoizer memoizer, IEventPublisher publisher, IRunRules rulesRunner)
 {
     Configuration = configuration;
     Memoizer      = memoizer;
     Publisher     = publisher;
     _rulesRunner  = rulesRunner;
 }
예제 #2
0
 public MikdaoContextProvider(IEventConfiguration configuration, IMemoizer memoizer, IEventPublisher publisher, IKeyAccessor keyAccessor, IRunRules rulesRunner)
 {
     Configuration = configuration;
     Memoizer      = memoizer;
     Publisher     = publisher;
     KeyAccessor   = keyAccessor;
     _rulesRunner  = rulesRunner;
 }
예제 #3
0
 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);
 }