csharp-sdk-upm/Storage/Storage.Standard/Public/LCApplication.cs

25 lines
671 B
C#

using LeanCloud.Common;
using LeanCloud.Storage.Internal;
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);
}
}
}