Пример #1
0
        public void Register(IResourceManager rmgr, ISagaManager smgr)
        {
            var factory = new WaitMessageSagaFactory(plugin.BotManager);

            rmgr.RegisterResourceFactory(factory.SagaKind, new SagaResourceFactory(factory));
            rmgr.RegisterResources(WaitMessageSaga.GetHandledTypes());
            smgr.RegisterSagaFactory(factory, WaitMessageSaga.GetHandledTypes());
        }
        public void Register(IResourceManager rmgr, ISagaManager smgr)
        {
            var factory = new RegisterBotSagaFactory(plugin.BotManager);

            rmgr.RegisterResourceFactory(factory.SagaKind, new SagaResourceFactory(factory));
            rmgr.RegisterResources(RegisterBotProcessingSaga.GetHandledTypes());
            smgr.RegisterSagaFactory(factory, RegisterBotProcessingSaga.GetHandledTypes());
        }