Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UCenterClient" /> class.
 /// </summary>
 /// <param name="host">Indicating the host address.</param>
 public UCenterClient(string host)
 {
     this.httpClient = new UCenterHttpClient();
     this.host       = host;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UCenterClient" /> class.
 /// </summary>
 /// <param name="host">Indicating the host address.</param>
 public UCenterClient(string host)
 {
     this.httpClient = new UCenterHttpClient();
     this.host       = host.EndsWith("/") ? host.Substring(0, host.Length - 1) : host;
 }