public VitualScenes34Controller(Credential Credential, IHttpClient HttpClient = null) { Cookies = new System.Net.CookieContainer(); Headers = new WebHeaderCollection(); log = Client.LogManager.GetLogger<VitualScenes34Controller>(); this.Credential = Credential; this.UrlBuilder = new VirtualScenes34UrlBuilder(this.Credential); if (HttpClient == null) HttpClient = new HTTP.VirtualClientHttp(this.Credential); this.HttpClient = HttpClient; this.HttpClient.OnHttpDownloadError += new HttpDownloadError(HttpClient_OnHttpDownloadError); this.HttpClient.OnHttpDownloadTimeout += new HttpDownloadTimeout(HttpClient_OnHttpDownloadTimeout); }
public HttpClient() { LogManager lm = new LogManager(); Logger = lm.GetLogger<HttpClient>(); }