Exemple #1
0
 public ActionResult Save(Bam.Net.ServiceProxy.Secure.ApiKey[] values)
 {
     try
     {
         ApiKeyCollection saver = new ApiKeyCollection();
         saver.AddRange(values);
         saver.Save();
         return(Json(new { Success = true, Message = "", Dao = "" }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }
Exemple #2
0
 public ActionResult Save(Bam.Net.CoreServices.ApplicationRegistration.Data.Dao.ApiKey[] values)
 {
     try
     {
         ApiKeyCollection saver = new ApiKeyCollection();
         saver.AddRange(values);
         saver.Save();
         return(Json(new { Success = true, Message = "", Dao = "" }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }
Exemple #3
0
        public static void CleanUp()
        {
            FilesToDelete.Each(file =>
            {
                if (File.Exists(file))
                {
                    File.Delete(file);
                }
            });

            Prepare();
            ApiKeyCollection keys = ApiKey.LoadAll();

            keys.Delete();
            SecureSessionCollection sessions = SecureSession.LoadAll();

            sessions.Delete();

            ApplicationCollection all = Application.LoadAll();

            all.Delete();
            ClearAppsAndStopServers();
        }