예제 #1
0
 public HttpConnectionListener(IServiceProvider serviceProvider)
 {
     this.bindingOptions = serviceProvider.GetRequiredService <BasicHttpBindingOptions>();
     this.serializer     = serviceProvider.GetRequiredService <MessageSerializer>();
     this.dispatcher     = serviceProvider.GetRequiredService <MessageDispatcher>();
 }
예제 #2
0
 public HttpClientRuntime(IServiceProvider serviceProvider)
 {
     this.bindingOption = serviceProvider.GetRequiredService <BasicHttpBindingOptions>();
     this.serializer    = serviceProvider.GetRequiredService <MessageSerializer>();
 }