internal static async Task Main() { IBotStarter botStarter = new BotStarter(); await botStarter.Start(); await Task.Delay(-1); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BotStarter.StartBot(); }