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)); }
public WaitMessageSagaFactory(BotManager botManager) { this.botManager = botManager; }
internal WaitMessageSaga(BotManager botManager) : base(ukey) { IsWaiting = false; this.botManager = botManager; }
public EndpointHandler(IServiceBus bus, BotEngine engine, BotManager botManager) { this.bus = bus; this.engine = engine; this.botManager = botManager; }
public SendMessageSagaFactory(BotManager botManager) { this.botManager = botManager; }
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; }