2 interfaces inheriting from IRequestChannel
System.ServiceModel.Primitives (2)
9 implementations of IRequestChannel
Extensibility.MessageInterceptor.IntegrationTests (2)
System.ServiceModel.Primitives (4)
System.ServiceModel.Primitives.Tests (2)
UnitTests.Common (1)
211 references to IRequestChannel
Client.ChannelLayer.IntegrationTests (15)
Client.TypedClient.IntegrationTests (9)
Contract.Message.IntegrationTests (3)
Extensibility.MessageInterceptor.IntegrationTests (3)
System.ServiceModel.Federation (10)
System.ServiceModel.Http (15)
System.ServiceModel.Http.Tests (2)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.Primitives (100)
System\ServiceModel\Channels\SecurityChannelFactory.cs (5)
164else if (typeof(TChannel) == typeof(IAsyncRequestChannel) || typeof(TChannel) == typeof(IRequestChannel))
166return (TChannel)(object)new SecurityRequestChannel(this, SecurityProtocolFactory, ((IChannelFactory<IRequestChannel>)InnerChannelFactory).CreateChannel(address, via), address, via);
288typeof(TChannel) == typeof(IRequestChannel),
405private class SecurityRequestChannel : ClientSecurityChannel<IRequestChannel>, IAsyncRequestChannel
407public SecurityRequestChannel(ChannelManagerBase factory, SecurityProtocolFactory securityProtocolFactory, IRequestChannel innerChannel, EndpointAddress to, Uri via)
System\ServiceModel\ClientBase.cs (14)
1173Uri IRequestChannel.Via
1175get { return ((IRequestChannel)_channel).Via; }
1178EndpointAddress IRequestChannel.RemoteAddress
1180get { return ((IRequestChannel)_channel).RemoteAddress; }
1183Message IRequestChannel.Request(Message message)
1185return ((IRequestChannel)_channel).Request(message);
1188Message IRequestChannel.Request(Message message, TimeSpan timeout)
1190return ((IRequestChannel)_channel).Request(message, timeout);
1193IAsyncResult IRequestChannel.BeginRequest(Message message, AsyncCallback callback, object state)
1195return ((IRequestChannel)_channel).BeginRequest(message, callback, state);
1198IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state)
1200return ((IRequestChannel)_channel).BeginRequest(message, timeout, callback, state);
1203Message IRequestChannel.EndRequest(IAsyncResult result)
1205return ((IRequestChannel)_channel).EndRequest(result);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (12)
169else if (ChannelBuilder.CanBuildChannelFactory<IRequestChannel>())
171return ChannelBuilder.BuildChannelFactory<IRequestChannel>();
508else if (channelBuilder.CanBuildChannelFactory<IRequestChannel>())
510ChannelBinder = ClientReliableChannelBinder<IRequestChannel>.CreateBinder(RemoteAddress, Via, (IChannelFactory<IRequestChannel>)(object)Settings.InnerChannelFactory,
1467Message IRequestChannel.Request(Message message) => ((IRequestChannel)this).Request(message, DefaultSendTimeout);
1469Message IRequestChannel.Request(Message message, TimeSpan timeout) => RequestAsync(message, timeout).WaitForCompletionNoSpin();
1471IAsyncResult IRequestChannel.BeginRequest(Message message, AsyncCallback callback, object state) => ((IRequestChannel)this).BeginRequest(message, DefaultSendTimeout, callback, state);
1473IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) => RequestAsync(message, timeout).ToApm(callback, state);
1475Message IRequestChannel.EndRequest(IAsyncResult result) => result.ToApmEnd<Message>();
System.ServiceModel.Primitives.Tests (52)
ServiceModel\ChannelFactoryTest.cs (32)
20ChannelFactory<IRequestChannel> factory = null;
21ChannelFactory<IRequestChannel> factory2 = null;
22IRequestChannel channel = null;
23IRequestChannel channel2 = null;
34factory = new ChannelFactory<IRequestChannel>(binding, endpointAddress);
35factory2 = new ChannelFactory<IRequestChannel>(binding, endpointAddress);
39Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
40String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel)));
43Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel2.GetType().GetTypeInfo()),
44String.Format("Channel type '{0}' was not assignable to '{1}'", channel2.GetType(), typeof(IRequestChannel)));
52Assert.StrictEqual<IRequestChannel>(channel, channel);
55Assert.NotStrictEqual<IRequestChannel>(channel, channel2);
79ChannelFactory<IRequestChannel> factory = null;
80ChannelFactory<IRequestChannel> factory2 = null;
81IRequestChannel channel = null;
82IRequestChannel channel2 = null;
91factory = new ChannelFactory<IRequestChannel>(binding, endpointAddress);
92factory2 = new ChannelFactory<IRequestChannel>(binding, endpointAddress);
96Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
97String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel)));
100Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel2.GetType().GetTypeInfo()),
101String.Format("Channel type '{0}' was not assignable to '{1}'", channel2.GetType(), typeof(IRequestChannel)));
109Assert.StrictEqual<IRequestChannel>(channel, channel);
112Assert.NotStrictEqual<IRequestChannel>(channel, channel2);
136ChannelFactory<IRequestChannel> factory = null;
137IRequestChannel channel = null;
146factory = new ChannelFactory<IRequestChannel>(binding, endpointAddress);
152Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
153String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel)));
197String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel)));
211ChannelFactory<IRequestChannel> factory = null;
217factory = new ChannelFactory<IRequestChannel>(binding, new EndpointAddress(FakeAddress.HttpAddress));
UnitTests.Common (1)