示例#1
0
 public ClientConfiguration(BoltOptions options = null)
 {
     Options = options ?? new BoltOptions();
     Serializer = new JsonSerializer();
     ExceptionWrapper = new JsonExceptionWrapper();
     EndpointProvider = new EndpointProvider(Options);
     SessionHandler = new ClientSessionHandler(Options);
     ProxyFactory = new ProxyFactory();
     ErrorProvider = new ClientErrorProvider(Options.ServerErrorHeader);
     ErrorHandling = new ErrorHandling();
     HttpMessageHandler = new HttpClientHandler();
 }
 public ClientConfiguration(BoltOptions options = null)
 {
     Options             = options ?? new BoltOptions();
     Serializer          = new JsonSerializer();
     ExceptionSerializer = new JsonExceptionSerializer();
     EndpointProvider    = new EndpointProvider(Options);
     SessionHandler      = new ClientSessionHandler(Options);
     ProxyFactory        = new ProxyFactory();
     ErrorProvider       = new ClientErrorProvider(Options.ServerErrorHeader);
     ErrorHandling       = new ErrorHandling();
     HttpMessageHandler  = new HttpClientHandler();
 }