/// <summary>
 /// Clear all custom global options and set default values.
 /// </summary>
 public void ResetDefaults()
 {
     DefaultTimeout    = new HttpClient().Timeout;
     HttpClientFactory = new DefaultHttpClientFactory();
     BeforeCall        = null;
     BeforeCallAsync   = null;
     AfterCall         = null;
     AfterCallAsync    = null;
     OnError           = null;
     OnErrorAsync      = null;
 }
Exemplo n.º 2
0
		/// <summary>
		/// Clear all custom global options and set default values.
		/// </summary>
		public void ResetDefaults() {
			DefaultTimeout = new HttpClient().Timeout;
			AllowedHttpStatusRange = null;
			HttpClientFactory = new DefaultHttpClientFactory();
			JsonSerializer = new NewtonsoftJsonSerializer(null);
			UrlEncodedSerializer = new DefaultUrlEncodedSerializer();
			BeforeCall = null;
			BeforeCallAsync = null;
			AfterCall = null;
			AfterCallAsync = null;
			OnError = null;
			OnErrorAsync = null;
		}
Exemplo n.º 3
0
 /// <summary>
 /// Clear all custom global options and set default values.
 /// </summary>
 public void ResetDefaults()
 {
     DefaultTimeout         = new HttpClient().Timeout;
     AllowedHttpStatusRange = null;
     HttpClientFactory      = new DefaultHttpClientFactory();
     JsonSerializer         = new NewtonsoftJsonSerializer(null);
     UrlEncodedSerializer   = new DefaultUrlEncodedSerializer();
     BeforeCall             = null;
     BeforeCallAsync        = null;
     AfterCall      = null;
     AfterCallAsync = null;
     OnError        = null;
     OnErrorAsync   = null;
 }
 /// <summary>
 /// Clear all custom global options and set default values.
 /// </summary>
 public void ResetDefaults()
 {
     DefaultTimeout = new HttpClient().Timeout;
     AllowedHttpStatusRange = null;
     HttpClientFactory = new DefaultHttpClientFactory();
     BeforeCall = null;
     BeforeCallAsync = null;
     AfterCall = null;
     AfterCallAsync = null;
     OnError = null;
     OnErrorAsync = null;
 }