コード例 #1
0
        private void AddSagaEvent(Type handler, Type msg, EventHandlerSubscription sub)
        {
            var invoker = new HandlerTypeInvoker(handler, _container,_auditor,_error);
            SagaExecutor executor = null;
            if (msg.CanStartSaga(handler))
            {
                executor = new SagaStarterExecutor(invoker, _container);             
            }
            else
            {
                executor = new SagaExecutor(invoker, _container);
             
            }
            executor.UseCustomRepositories = _host.UseUserDefinedSagaRepos;
            sub.Add(executor);

        }
コード例 #2
0
 public SagaStarterExecutorTests()
 {
     _sut = new SagaStarterExecutor(_invoker, _di);
 }