Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
        /// <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;
        }