Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public WaitMessageSagaFactory(BotManager botManager)
 {
     this.botManager = botManager;
 }
Ejemplo n.º 3
0
 internal WaitMessageSaga(BotManager botManager) : base(ukey)
 {
     IsWaiting       = false;
     this.botManager = botManager;
 }
Ejemplo n.º 4
0
 public EndpointHandler(IServiceBus bus, BotEngine engine, BotManager botManager)
 {
     this.bus        = bus;
     this.engine     = engine;
     this.botManager = botManager;
 }
Ejemplo n.º 5
0
 public SendMessageSagaFactory(BotManager botManager)
 {
     this.botManager = botManager;
 }
Ejemplo 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;
 }