2 interfaces inheriting from IRequestChannel
System.ServiceModel.Primitives (2)
System\ServiceModel\Channels\IRequestChannel.cs (1)
24internal interface IAsyncRequestChannel : IRequestChannel, IAsyncCommunicationObject
System\ServiceModel\Channels\IRequestSessionChannel.cs (1)
10: IRequestChannel, ISessionChannel<IOutputSession>
9 implementations of IRequestChannel
Extensibility.MessageInterceptor.IntegrationTests (2)
InterceptingChannelFactory.cs (2)
230: InterceptingChannelBase<IRequestChannel>, IRequestChannel
System.ServiceModel.Primitives (4)
System\ServiceModel\Channels\RequestChannel.cs (1)
13internal abstract class RequestChannel : ChannelBase, IRequestChannel, IAsyncRequestChannel
System\ServiceModel\Channels\ServiceChannel.cs (1)
23internal sealed class ServiceChannel : CommunicationObject, IChannel, IClientChannel, IDuplexContextChannel, IOutputChannel, IRequestChannel, IServiceChannel, IAsyncDisposable
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
18public class ServiceChannelProxy : DispatchProxy, ICommunicationObject, IChannel, IClientChannel, IOutputChannel, IRequestChannel, IServiceChannel, IDuplexContextChannel, IAsyncDisposable
System\ServiceModel\ClientBase.cs (1)
896protected class ChannelBase<T> : IClientChannel, IOutputChannel, IRequestChannel, IChannelBaseProxy
System.ServiceModel.Primitives.Tests (2)
ServiceModel\ThrowingOnCloseBindingElement.cs (2)
201private class ThrowingRequestChannel : ThrowingChannelBase<IRequestChannel>, IRequestChannel
UnitTests.Common (1)
MockRequestChannel.cs (1)
9public class MockRequestChannel : MockChannelBase, IRequestChannel
211 references to IRequestChannel
Client.ChannelLayer.IntegrationTests (15)
RequestReplyChannelShapeTests.4.0.0.cs (12)
26IChannelFactory<IRequestChannel> factory = null; 27IRequestChannel channel = null; 36factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection()); 77IChannelFactory<IRequestChannel> factory = null; 78IRequestChannel channel = null; 90factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection()); 132IChannelFactory<IRequestChannel> factory = null; 133IRequestChannel channel = null; 142factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection()); 185IChannelFactory<IRequestChannel> factory = null; 186IRequestChannel channel = null; 198factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection());
RequestReplyChannelShapeTests.4.1.0.cs (3)
25IChannelFactory<IRequestChannel> factory = null; 26IRequestChannel channel = null; 35factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection());
Client.TypedClient.IntegrationTests (9)
TypedProxyTests.4.0.0.cs (9)
220ChannelFactory<IRequestChannel> factory = null; 222IRequestChannel channel = null; 235factory = new ChannelFactory<IRequestChannel>(customBinding, endpointAddress); 283ChannelFactory<IRequestChannel> factory = null; 285IRequestChannel channel = null; 299factory = new ChannelFactory<IRequestChannel>(customBinding, endpointAddress); 347ChannelFactory<IRequestChannel> factory = null; 349IRequestChannel channel = null; 363factory = new ChannelFactory<IRequestChannel>(customBinding, endpointAddress);
Contract.Message.IntegrationTests (3)
MessageTests.4.0.0.cs (3)
25IChannelFactory<IRequestChannel> factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection()); 29IRequestChannel channel = factory.CreateChannel(new EndpointAddress(Endpoints.HttpBaseAddress_Basic_Text));
Extensibility.MessageInterceptor.IntegrationTests (3)
InterceptingChannelFactory.cs (3)
90else if (typeof(TChannel) == typeof(IRequestChannel)) 92return (TChannel)(object)new InterceptingRequestChannel(this, (IRequestChannel)innerChannel); 233InterceptingChannelFactory<TChannel> factory, IRequestChannel innerChannel)
System.ServiceModel.Federation (10)
System\ServiceModel\Federation\WSTrustChannel.cs (4)
27/// <param name="requestChannel">The <see cref="IRequestChannel" /> this channel will be used to send a <see cref="WsTrustRequest" /> to the STS.</param> 28public WSTrustChannel(IRequestChannel requestChannel) 46/// The <see cref="IRequestChannel" /> this class uses for sending and receiving <see cref="Message" /> objects. 48private IRequestChannel RequestChannel { get; }
System\ServiceModel\Federation\WSTrustChannelFactory.cs (2)
51return new WSTrustChannel(base.CreateChannel(endpointAddress, via) as IRequestChannel); 60return new WSTrustChannel(base.CreateChannel(EndpointAddress, EndpointAddress.Uri) as IRequestChannel);
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (4)
109internal virtual ChannelFactory<IRequestChannel> ChannelFactory { get; set; } 256IRequestChannel channel = ChannelFactory.CreateChannel(); 295IRequestChannel channel = ChannelFactory.CreateChannel(); 477var channelFactory = new ChannelFactory<IRequestChannel>(IssuerBinding, WSTrustTokenParameters.IssuerAddress);
System.ServiceModel.Http (15)
System\ServiceModel\Channels\HttpChannelFactory.cs (7)
495if (typeof(TChannel) != typeof(IRequestChannel)) 511if (typeof(TChannel) == typeof(IRequestChannel)) 513return (TChannel)(object)new HttpClientRequestChannel((HttpChannelFactory<IRequestChannel>)(object)this, remoteAddress, via, ManualAddressing); 524if (channelType == typeof(IRequestChannel) && WebSocketSettings.TransportUsage == WebSocketTransportUsage.Always) 792public HttpClientRequestChannel(HttpChannelFactory<IRequestChannel> factory, EndpointAddress to, Uri via, bool manualAddressing) 798public HttpChannelFactory<IRequestChannel> Factory { get; } 973private HttpChannelFactory<IRequestChannel> _factory;
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
20private readonly HttpChannelFactory<IRequestChannel> _factory; 27public HttpResponseMessageHelper(HttpResponseMessage httpResponseMessage, HttpChannelFactory<IRequestChannel> factory)
System\ServiceModel\Channels\HttpsChannelFactory.cs (4)
111if (typeof(TChannel) == typeof(IRequestChannel)) 113return (TChannel)(object)new HttpsClientRequestChannel((HttpsChannelFactory<IRequestChannel>)(object)this, address, via, ManualAddressing); 313public HttpsClientRequestChannel(HttpsChannelFactory<IRequestChannel> factory, EndpointAddress to, Uri via, bool manualAddressing) 319public new HttpsChannelFactory<IRequestChannel> Factory { get; }
System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
425if (typeof(TChannel) == typeof(IRequestChannel))
System\ServiceModel\Channels\MessageContent.cs (1)
160internal static HttpContent Create(HttpChannelFactory<IRequestChannel> factory, Message request, TimeoutHelper _timeoutHelper)
System.ServiceModel.Http.Tests (2)
ServiceModel\SecurityBindingElementTest.cs (2)
27Assert.True(binding.CanBuildChannelFactory<IRequestChannel>(), string.Format("CanBuildChannelFactory should return true for BasicHttpSecurityMode:'{0}'", securityMode)); 28binding.BuildChannelFactory<IRequestChannel>();
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (1)
112return (typeof(TChannel) == typeof(IRequestChannel));
System.ServiceModel.Primitives (100)
System\ServiceModel\Channels\ChannelReliableSession.cs (1)
553if (_binder.Channel is IRequestChannel)
System\ServiceModel\Channels\ChannelRequirements.cs (9)
90typeof(IRequestChannel), 104typeof(IRequestChannel), 116typeof(IRequestChannel), 132typeof(IRequestChannel), 143typeof(IRequestChannel), 157typeof(IRequestChannel), 171typeof(IRequestChannel), 186typeof(IRequestChannel), 213return (channelType == typeof(IRequestChannel) ||
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (7)
95else if (type == typeof(IRequestChannel)) 97return new RequestClientReliableChannelBinder(to, via, (IChannelFactory<IRequestChannel>)(object)factory, maskingMode, 382where TRequestChannel : class, IRequestChannel 437IRequestChannel channel = Synchronizer.CurrentChannel; 486: RequestClientReliableChannelBinder<IRequestChannel> 489IChannelFactory<IRequestChannel> factory, MaskingMode maskingMode, 510protected override bool HasSecuritySession(IRequestChannel channel)
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (8)
295else if (context.CanBuildInnerChannelFactory<IRequestChannel>()) 298new ReliableChannelFactory<TChannel, IRequestChannel>( 299this, context.BuildInnerChannelFactory<IRequestChannel>(), context.Binding); 337else if (context.CanBuildInnerChannelFactory<IRequestChannel>()) 340new ReliableChannelFactory<TChannel, IRequestChannel>( 341this, context.BuildInnerChannelFactory<IRequestChannel>(), context.Binding); 356|| context.CanBuildInnerChannelFactory<IRequestChannel>() 368|| context.CanBuildInnerChannelFactory<IRequestChannel>();
System\ServiceModel\Channels\RequestChannel.cs (1)
136if (typeof(T) == typeof(IRequestChannel))
System\ServiceModel\Channels\SecurityBindingElement.cs (3)
381(SupportsRequestReply && (typeof(TChannel) == typeof(IRequestChannel) || typeof(TChannel) == typeof(IRequestSessionChannel))); 386if (!(context.CanBuildInnerChannelFactory<IRequestChannel>() 396return (context.CanBuildInnerChannelFactory<IRequestChannel>() || context.CanBuildInnerChannelFactory<IRequestSessionChannel>());
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\Channels\ServiceChannel.cs (4)
334IRequestChannel requestChannel = InnerChannel as IRequestChannel; 359IRequestChannel requestChannel = InnerChannel as IRequestChannel;
System\ServiceModel\Channels\ServiceChannelFactory.cs (17)
127if (type == typeof(IRequestChannel) && customBinding.CanBuildChannelFactory<IRequestChannel>(parameters)) 129return new ServiceChannelFactoryOverRequest(customBinding.BuildChannelFactory<IRequestChannel>(parameters), clientRuntime, binding); 175if (type == typeof(IRequestChannel) && customBinding.CanBuildChannelFactory<IRequestSessionChannel>(parameters)) 182if (type == typeof(IRequestSessionChannel) && customBinding.CanBuildChannelFactory<IRequestChannel>(parameters) 185return new ServiceChannelFactoryOverRequest(customBinding.BuildChannelFactory<IRequestChannel>(parameters), clientRuntime, binding); 195if (customBinding.CanBuildChannelFactory<IRequestChannel>(parameters)) 197supportedChannels.Add(typeof(IRequestChannel), 0); 526|| typeof(TChannel) == typeof(IRequestChannel)); 545|| typeof(TChannel) == typeof(IRequestChannel) 550private class ServiceChannelFactoryOverRequest : TypedServiceChannelFactory<IRequestChannel> 552public ServiceChannelFactoryOverRequest(IChannelFactory<IRequestChannel> innerChannelFactory, ClientRuntime clientRuntime, Binding binding) 565|| typeof(TChannel) == typeof(IRequestChannel)); 592|| typeof(TChannel) == typeof(IRequestChannel) 615|| typeof(TChannel) == typeof(IRequestChannel) 635IRequestChannel channel; 647|| typeof(TChannel) == typeof(IRequestChannel)
System\ServiceModel\Channels\ServiceChannelProxy.cs (7)
770Message IRequestChannel.Request(Message message) 775Message IRequestChannel.Request(Message message, TimeSpan timeout) 780IAsyncResult IRequestChannel.BeginRequest(Message message, AsyncCallback callback, object state) 785IAsyncResult IRequestChannel.BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) 790Message IRequestChannel.EndRequest(IAsyncResult result) 810EndpointAddress IRequestChannel.RemoteAddress 815Uri IRequestChannel.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\Description\TypeLoader.cs (2)
63else if (contractType == typeof(IRequestChannel)) 197Type channelType = typeof(IRequestChannel);
System\ServiceModel\Dispatcher\RequestChannelBinder.cs (2)
13private IRequestChannel _channel; 15internal RequestChannelBinder(IRequestChannel channel)
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\Security\SecuritySessionSecurityTokenProvider.cs (8)
345SecurityProtocolFactory securityProtocolFactory = BootstrapSecurityBindingElement.CreateSecurityProtocolFactory<IRequestChannel>(IssuerBindingContext.Clone(), securityCredentials, false, IssuerBindingContext.Clone()); 357if (channelBuilder.CanBuildChannelFactory<IRequestChannel>()) 359innerChannelFactory = channelBuilder.BuildChannelFactory<IRequestChannel>(); 725internal class RequestChannelFactory : ChannelFactoryBase<IAsyncRequestChannel>, IChannelFactory<IRequestChannel> 792IRequestChannel IChannelFactory<IRequestChannel>.CreateChannel(EndpointAddress to) 797IRequestChannel IChannelFactory<IRequestChannel>.CreateChannel(EndpointAddress to, Uri via)
System.ServiceModel.Primitives.Tests (52)
Channels\CustomBindingTest.cs (3)
26IChannelFactory<IRequestChannel> factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection()); 30IRequestChannel channel = factory.CreateChannel(new EndpointAddress("http://localhost/WcfProjectNService.svc"));
Channels\CustomChannelTest.cs (10)
22MockChannelFactory<IRequestChannel> mockChannelFactory = null; 36mockChannelFactory = new MockChannelFactory<IRequestChannel>(context, new TextMessageEncodingBindingElement().CreateMessageEncoderFactory()); 112MockChannelFactory<IRequestChannel> mockChannelFactory = null; 126mockChannelFactory = new MockChannelFactory<IRequestChannel>(context, new TextMessageEncodingBindingElement().CreateMessageEncoderFactory()); 209MockChannelFactory<IRequestChannel> mockChannelFactory = null; 220mockChannelFactory = new MockChannelFactory<IRequestChannel>(context, new TextMessageEncodingBindingElement().CreateMessageEncoderFactory()); 260MockChannelFactory<IRequestChannel> mockChannelFactory = null; 271mockChannelFactory = new MockChannelFactory<IRequestChannel>(context, new TextMessageEncodingBindingElement().CreateMessageEncoderFactory()); 314MockChannelFactory<IRequestChannel> mockChannelFactory = null; 328mockChannelFactory = new MockChannelFactory<IRequestChannel>(context, new TextMessageEncodingBindingElement().CreateMessageEncoderFactory());
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));
ServiceModel\MessageContractTest.4.4.0.cs (4)
143MockChannelFactory<IRequestChannel> mockChannelFactory = null; 153mockChannelFactory = new MockChannelFactory<IRequestChannel>(context, new TextMessageEncodingBindingElement().CreateMessageEncoderFactory()); 244MockChannelFactory<IRequestChannel> mockChannelFactory = null; 253mockChannelFactory = new MockChannelFactory<IRequestChannel>(context, new TextMessageEncodingBindingElement().CreateMessageEncoderFactory());
ServiceModel\ThrowingOnCloseBindingElement.cs (3)
136else if (typeof(TChannel) == typeof(IRequestChannel)) 138return (TChannel)(object)new ThrowingRequestChannel(this, _parent._exception, (IRequestChannel)innerChannel); 203public ThrowingRequestChannel(ThrowingChannelFactory<TChannel> factory, Exception exception, IRequestChannel innerChannel)
UnitTests.Common (1)
MockTransportBindingElement.cs (1)
57return new MockChannelFactory<IRequestChannel>(context, new TextMessageEncodingBindingElement().CreateMessageEncoderFactory());