/// <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; }
/// <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; }