示例#1
0
        protected void AddSaga <TS, TD, TM>(IBusConfigurator cfg, Func <TM, TD> stateFactory)
            where TD : SagaState
            where TS : Saga <TD>
            where TM : IMessage
        {
            var sagaCfg = cfg.AddSaga <TS, TD>()
                          .UseStateFactory(stateFactory);

            ConfigureSagaTransport(sagaCfg);
        }