/// <summary> /// Initializes a new instance of the <see cref="ServiceClient" /> class. /// </summary> /// <param name="clientChannelProvider">The client channel provider.</param> public ServiceClient(IClientChannelProvider clientChannelProvider) { this.commandChannel = clientChannelProvider.GetCommandChannel(this); this.queryChannel = clientChannelProvider.GetQueryChannel(this); this.originationHash = Process.GetCurrentProcess().Id; }
/// <summary> /// Initializes a new instance of the <see cref="WstServiceClient" /> class. /// </summary> /// <param name="clientChannelProvider">The client channel provider.</param> public WstServiceClient(IClientChannelProvider clientChannelProvider) { if (clientChannelProvider == null) { throw new ArgumentNullException(nameof(clientChannelProvider)); } this.commandChannel = clientChannelProvider.GetCommandChannel(this); this.queryChannel = clientChannelProvider.GetQueryChannel(this); this.originationHash = Process.GetCurrentProcess().Id; }