public SimpleSaga(ILogger logger, ISagaResolver sagaResolver) { this._logger = logger; this._sagaResolver = sagaResolver; // saga data types改成在这里静态方法注册,把FormType注册,用来找到所有的saga data types SagaGlobal.BindSagaDataType(typeof(FormType)); AutoBindBranchServices(); }
private void AutoBindBranchServices() { SagaGlobal.AutoBindBranchServices <FormType>(this, _sagaResolver, _logger); }