Пример #1
0
 static PersistentState()
 {
     if (File.Exists(Path.Combine(DatabaseFolder, "persistent.db")))
     {
         Database = new Database();
     }
 }
Пример #2
0
        public static void Initialize(string id, string key, string bulkStoragePath)
        {
            if (Database != null) return;

            Directory.CreateDirectory(DatabaseFolder);

            Database = Database.Create();
            Database.SetKey("crashdumps_aws_id", id);
            Database.SetKey("crashdumps_aws_key", key);
            Database.SetKey("crashdumps_zip_folder", bulkStoragePath);

            Directory.CreateDirectory(BulkFolder);
        }
Пример #3
0
			internal DatabasePrivateApi(Database db)
			{
				_db = db;
			}