/// <summary>
 /// Initializes a new instance of the <see cref="AbstractKinveyClient.Builder"/> class.
 /// </summary>
 /// <param name="transport">Transport.</param>
 /// <param name="defaultRootUrl">Default root URL.</param>
 /// <param name="defaultServicePath">Default service path.</param>
 /// <param name="kinveyRequestInitializer">[optional] Kinvey request initializer.</param>
 public Builder(HttpClient transport, string defaultRootUrl, string defaultServicePath, KinveyClientRequestInitializer kinveyRequestInitializer = null)
 {
     this.httpClient = transport;
     BaseUrl         = defaultRootUrl;
     ServicePath     = defaultServicePath;
     this.kinveyRequestInitializer = kinveyRequestInitializer;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:KinveyXamarin.AbstractClient.Builder"/> class.
 /// </summary>
 /// <param name="transport">The REST client used to make network requests.</param>
 /// <param name="baseUrl">Base URL.</param>
 /// <param name="clientRequestInitializer">Kinvey client request initializer.</param>
 public Builder(HttpClient transport, string baseUrl, KinveyClientRequestInitializer clientRequestInitializer)
     : base(transport, baseUrl, DefaultServicePath, clientRequestInitializer)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AbstractClient"/> class.
 /// </summary>
 /// <param name="client">Client.</param>
 /// <param name="rootUrl">Root URL.</param>
 /// <param name="servicePath">Service path.</param>
 /// <param name="initializer">Initializer.</param>
 /// <param name="store">Store.</param>
 protected AbstractClient(HttpClient client, string rootUrl, string servicePath, KinveyClientRequestInitializer initializer, ICredentialStore store)
     : base(client, rootUrl, servicePath, initializer)
 {
     this.store          = store;
     this.MICHostName    = "https://auth.kinvey.com/";
     this.NetworkFactory = new NetworkFactory(this);
     this.UserFactory    = new UserRequestFactory(this);
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KinveyXamarin.Client"/> class.  Use a Client.Builder to create one.
 /// </summary>
 /// <param name="client">The RestClient.</param>
 /// <param name="rootUrl">The Root URL of the Kinvey instance this is associated with.</param>
 /// <param name="servicePath">The service path, appended to the rootURL.</param>
 /// <param name="initializer">The request initializer, maintaining headers and authentication.</param>
 /// <param name="store">The credential store, where the current user's credentials will be stored.</param>
 protected Client(HttpClient client, string rootUrl, string servicePath, KinveyClientRequestInitializer initializer, ICredentialStore store)
     : base(client, rootUrl, servicePath, initializer, store)
 {
 }