public ClientTelemetryBindingElement(TelemetryClient client, ClientContract map) { if (client == null) { throw new ArgumentNullException(nameof(client)); } if (map == null) { throw new ArgumentNullException(nameof(map)); } this.telemetryClient = client; this.operationMap = map; }
public ClientTelemetryChannelFactory(Binding binding, IChannelFactory <TChannel> factory, TelemetryClient client, ClientContract map) : base(binding) { if (factory == null) { throw new ArgumentNullException(nameof(factory)); } if (client == null) { throw new ArgumentNullException(nameof(client)); } if (map == null) { throw new ArgumentNullException(nameof(map)); } this.innerFactory = factory; this.TelemetryClient = client; this.OperationMap = map; WcfClientEventSource.Log.ChannelFactoryCreated(typeof(TChannel).FullName); }