@@ -31,11 +31,18 @@ public static partial class ParseClient {
3131 /// <summary>
3232 /// Represents the configuration of the Parse SDK.
3333 /// </summary>
34- public struct Configuration {
34+ public struct Configuration {
3535 /// <summary>
3636 /// The Parse.com application ID of your app.
3737 /// </summary>
38- public String ApplicationId { get ; set ; }
38+ public String ApplicationId { get ; set ; }
39+
40+ /// <summary>
41+ /// The Parse.com API server to connect to.
42+ ///
43+ /// Only needs to be set if you're using another server than https://api.parse.com/1.
44+ /// </summary>
45+ public String Server { get ; set ; }
3946
4047 /// <summary>
4148 /// The Parse.com .NET key for your app.
@@ -78,7 +85,6 @@ private static Type GetParseType(string name) {
7885 /// The current configuration that parse has been initialized with.
7986 /// </summary>
8087 public static Configuration CurrentConfiguration { get ; internal set ; }
81- internal static Uri HostName { get ; set ; }
8288 internal static string MasterKey { get ; set ; }
8389
8490 internal static Version Version {
@@ -121,8 +127,8 @@ public static void Initialize(string applicationId, string dotnetKey) {
121127 /// <param name="configuration">The configuration to initialize Parse with.
122128 /// </param>
123129 public static void Initialize ( Configuration configuration ) {
124- lock ( mutex ) {
125- HostName = HostName ?? new Uri ( "https://api.parse.com/1/" ) ;
130+ lock ( mutex ) {
131+ configuration . Server = configuration . Server ?? "https://api.parse.com/1/" ;
126132 CurrentConfiguration = configuration ;
127133
128134 ParseObject . RegisterSubclass < ParseUser > ( ) ;
0 commit comments