protected void Application_Start(object sender, EventArgs e) { AreaRegistration.RegisterAllAreas(); //For ASP.NET HTTPS Redirection //GlobalFilters.Filters.Add(new RequireHttpsAttribute()); WebApiConfig.Register(GlobalConfiguration.Configuration); RouteConfig.RegisterRoutes(RouteTable.Routes); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); BundleConfig.RegisterBundles(BundleTable.Bundles); RouteConfig.RegisterViewEngines(ViewEngines.Engines); MvcHandler.DisableMvcResponseHeader = true; // Wait a maximum of 30 seconds after a transport connection is lost // before raising the Disconnected event to terminate the SignalR connection. Microsoft.AspNet.SignalR.GlobalHost.Configuration.KeepAlive = TimeSpan.FromSeconds(3); // Service for deleting signed off users whose record still exists in db SharedSupport.RemoveSignedOffUsersService(); //Chat Bot new ABotManager(2); }