/// <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; }
/// <summary> /// Creates a new <see cref="RefitSettings"/> instance with the default parameters /// </summary> public RefitSettings() { ContentSerializer = new NewtonsoftJsonContentSerializer(); UrlParameterFormatter = new DefaultUrlParameterFormatter(); FormUrlEncodedParameterFormatter = new DefaultFormUrlEncodedParameterFormatter(); }