2021-04-09 14:24:04 +08:00
|
|
|
|
using LeanCloud.Common;
|
2021-04-20 11:20:45 +08:00
|
|
|
|
using LeanCloud.Storage.Internal;
|
2021-04-09 14:24:04 +08:00
|
|
|
|
|
|
|
|
|
namespace LeanCloud {
|
|
|
|
|
public class LCApplication {
|
|
|
|
|
public static bool UseMasterKey {
|
|
|
|
|
get => LCCore.UseMasterKey;
|
|
|
|
|
set {
|
|
|
|
|
LCCore.UseMasterKey = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Initialize(string appId,
|
|
|
|
|
string appKey,
|
|
|
|
|
string server = null,
|
|
|
|
|
string masterKey = null) {
|
|
|
|
|
LCLogger.Debug("Application Initializes on Standard.");
|
|
|
|
|
|
|
|
|
|
LCStorage.Initialize(appId, appKey, server, masterKey);
|
|
|
|
|
|
|
|
|
|
LCCore.PersistenceController = new PersistenceController(null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|