コード例 #1
0
 /// <summary>
 /// Creates a new <see cref="RefitSettings"/> instance with the default parameters
 /// </summary>
 public RefitSettings()
 {
     ContentSerializer                = new NewtonsoftJsonContentSerializer();
     UrlParameterFormatter            = new DefaultUrlParameterFormatter();
     FormUrlEncodedParameterFormatter = new DefaultFormUrlEncodedParameterFormatter();
     ExceptionFactory = new DefaultApiExceptionFactory(this).CreateAsync;
 }
コード例 #2
0
 /// <summary>
 /// Creates a new <see cref="RefitSettings"/> instance with the default parameters
 /// </summary>
 public RefitSettings()
 {
     ContentSerializer                = new NewtonsoftJsonContentSerializer();
     UrlParameterFormatter            = new DefaultUrlParameterFormatter();
     FormUrlEncodedParameterFormatter = new DefaultFormUrlEncodedParameterFormatter();
 }