public void Stop() { this.Auth = null; if (this._httpClient != null) { this._httpClient.Dispose(); this._httpClient = null; } }
public void Start() { this._httpClient = new HttpClient() { BaseAddress = new Uri(this._baseUri), MaxResponseContentBufferSize = 64 * 1024, Timeout = TimeSpan.FromSeconds(10) }; this.Auth = new AuthControllerClient(this._httpClient, this._clientInfo); }