コード例 #1
0
ファイル: ClientConfiguration.cs プロジェクト: geffzhang/Bolt
 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();
 }
コード例 #2
0
ファイル: DataHandlerTest.cs プロジェクト: geffzhang/Bolt
 public JsonExceptionWrapperTest()
 {
     Subject = new JsonExceptionWrapper();
 }