public ProviderQueryPortTypeClient Build(WcfConfiguration configuration = null) { var client = new ProviderQueryPortTypeClient(); Configure(configuration, client); return(client); }
private static void Configure(WcfConfiguration configuration, ProviderQueryPortTypeClient client) { if (configuration == null) { return; } client.ChannelFactory.Endpoint.Binding.SendTimeout = configuration.SendTimeout; client.ChannelFactory.Endpoint.Binding.ReceiveTimeout = configuration.ReceiveTimeout; }