Exemplo n.º 1
0
 public ActionResult KeepAlive(string id)
 {
     id = (id ?? "").ToLower().Replace("-", "").Trim();
     if (id != Options.KeepAliveGUID)
     {
         return(new HttpNotFoundResult());
     }
     ServerStatus.StartIfStopped();
     return(Content("1"));
 }
Exemplo n.º 2
0
        public void Configuration(IAppBuilder app)
        {
            //new Settings(HttpContext.Current.Server.MapPath("~/App_Data")).Save();
            var settings = new Settings(HttpContext.Current.Server.MapPath("~/App_Data")).Load();

            DBOps.ConnectionString = settings.ConnectionString;
            DBOps.Settings         = settings;
            SQL.UpdateStructure();
            SQL.SetupData();
            ServerStatus.StartIfStopped();
            ConfigureAuth(app);
        }