示例#1
0
        public void Stop()
        {
            this.Auth = null;

            if (this._httpClient != null)
            {
                this._httpClient.Dispose();
                this._httpClient = null;
            }
        }
示例#2
0
        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);
        }