public void Init(IServiceProvider provider, IConfiguration configuration)
        {
            BotManager = new BotManager(configuration.GetSection("ChatBots"));

            var epm = provider.GetService <IEndpointManager>();
            var bus = provider.GetService <IServiceBus>();

            epm.RegisterEndpoint("telegram", new EndpointHandlerFactory(bus, BotEngine.Telegram, BotManager));
        }
Esempio n. 2
0
 public WaitMessageSagaFactory(BotManager botManager)
 {
     this.botManager = botManager;
 }
Esempio n. 3
0
 internal WaitMessageSaga(BotManager botManager) : base(ukey)
 {
     IsWaiting       = false;
     this.botManager = botManager;
 }
Esempio n. 4
0
 public EndpointHandler(IServiceBus bus, BotEngine engine, BotManager botManager)
 {
     this.bus        = bus;
     this.engine     = engine;
     this.botManager = botManager;
 }
Esempio n. 5
0
 public SendMessageSagaFactory(BotManager botManager)
 {
     this.botManager = botManager;
 }
Esempio n. 6
0
 internal SendMessageSaga(BotManager botManager) : base(ukey)
 {
     this.botManager = botManager;
 }
 public RegisterBotSagaFactory(BotManager botManager)
 {
     this.botManager = botManager;
 }
 internal RegisterBotProcessingSaga(BotManager botManager) : base(ukey)
 {
     this.botManager = botManager;
 }