示例#1
0
        public SimpleSaga(ILogger logger, ISagaResolver sagaResolver)
        {
            this._logger       = logger;
            this._sagaResolver = sagaResolver;
            // saga data types改成在这里静态方法注册,把FormType注册,用来找到所有的saga data types
            SagaGlobal.BindSagaDataType(typeof(FormType));

            AutoBindBranchServices();
        }
示例#2
0
 private void AutoBindBranchServices()
 {
     SagaGlobal.AutoBindBranchServices <FormType>(this, _sagaResolver, _logger);
 }