Exemplo n.º 1
0
        internal static async Task Main()
        {
            IBotStarter botStarter = new BotStarter();
            await botStarter.Start();

            await Task.Delay(-1);
        }
Exemplo n.º 2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BotStarter.StartBot();
 }