public HttpConnectionListener(IServiceProvider serviceProvider) { this.bindingOptions = serviceProvider.GetRequiredService <BasicHttpBindingOptions>(); this.serializer = serviceProvider.GetRequiredService <MessageSerializer>(); this.dispatcher = serviceProvider.GetRequiredService <MessageDispatcher>(); }
public HttpClientRuntime(IServiceProvider serviceProvider) { this.bindingOption = serviceProvider.GetRequiredService <BasicHttpBindingOptions>(); this.serializer = serviceProvider.GetRequiredService <MessageSerializer>(); }