/// <summary> /// Authenticates this client as belonging to your application. This must be /// called before your application can use the Parse library. The recommended /// way is to put a call to <c>ParseFramework.Initialize</c> in your /// Application startup. /// </summary> /// <param name="configuration">The configuration to initialize Parse with. /// </param> public static void Initialize(Configuration configuration) { lock (mutex) { configuration.Server = configuration.Server ?? "https://api.parse.com/1/"; CurrentConfiguration = configuration; ParseObject.RegisterSubclass <ParseUser>(); ParseObject.RegisterSubclass <ParseRole>(); ParseObject.RegisterSubclass <ParseSession>(); ParseModuleController.Instance.ParseDidInitialize(); } }
/// <summary> /// Authenticates this client as belonging to your application. This must be /// called before your application can use the Parse library. The recommended /// way is to put a call to <c>ParseFramework.Initialize</c> in your /// Application startup. /// </summary> /// <param name="configuration">The configuration to initialize Parse with. /// </param> public static void Initialize(Configuration configuration) { lock (mutex) { HostName = HostName ?? new Uri("https://api.parse.com/1/"); CurrentConfiguration = configuration; ParseObject.RegisterSubclass <ParseUser>(); ParseObject.RegisterSubclass <ParseInstallation>(); ParseObject.RegisterSubclass <ParseRole>(); ParseObject.RegisterSubclass <ParseSession>(); // Give platform-specific libraries a chance to do additional initialization. PlatformHooks.Initialize(); } }
/// <summary> /// Authenticates this client as belonging to your application. This must be /// called before your application can use the Parse library. The recommended /// way is to put a call to <c>ParseFramework.Initialize</c> in your /// Application startup. /// </summary> /// <param name="configuration">The configuration to initialize Parse with. /// </param> public static void Initialize(Configuration configuration) { lock (mutex) { configuration.Server = configuration.Server ?? "https://api.parse.com/1/"; //if (configuration.Server == null || configuration.Server.Length < 11) throw new ArgumentNullException("Since the official parse server has shut down, you must specify the URI that points to another implementation."); CurrentConfiguration = configuration; ParseObject.RegisterSubclass <ParseUser>(); ParseObject.RegisterSubclass <ParseRole>(); ParseObject.RegisterSubclass <ParseSession>(); ParseModuleController.Instance.ParseDidInitialize(); } }
/// <summary> /// Authenticates this client as belonging to your application. This must be /// called before your application can use the Parse library. The recommended /// way is to put a call to <c>ParseFramework.Initialize</c> in your /// Application startup. /// </summary> /// <param name="applicationId">The Application ID provided in the Parse dashboard. /// </param> /// <param name="dotnetKey">The .NET API Key provided in the Parse dashboard. /// </param> public static void Initialize(string applicationId, string dotnetKey) { lock (mutex) { HostName = HostName ?? new Uri("https://api.parse.com/1/"); ApplicationId = applicationId; WindowsKey = dotnetKey; ParseObject.RegisterSubclass <ParseUser>(); ParseObject.RegisterSubclass <ParseInstallation>(); ParseObject.RegisterSubclass <ParseRole>(); ParseObject.RegisterSubclass <ParseSession>(); // Give platform-specific libraries a chance to do additional initialization. PlatformHooks.Initialize(); } }