コード例 #1
0
        public TResult Invoke <TResult>(Func <TChannel, TResult> serviceInvocation)
        {
            ChannelFactory <TChannel> channelFactory = ChannelFactories.GetFactory <TChannel>(this.EndpointName);
            TChannel channel = channelFactory.CreateChannel();

            return(Invoke(serviceInvocation, channel));
        }
コード例 #2
0
        public void Invoke(Action <TChannel> serviceInvocation)
        {
            ChannelFactory <TChannel> channelFactory = ChannelFactories.GetFactory <TChannel>(this.EndpointName);
            TChannel channel = channelFactory.CreateChannel();

            Invoke(serviceInvocation, channel);
        }