System\ServiceModel\Channels\ChannelDemuxer.cs (13)
80if (channelType == typeof(IDuplexSessionChannel))
2752class DuplexSessionChannelDemuxer : SessionChannelDemuxer<IDuplexSessionChannel, Message>
2764protected override IAsyncResult BeginReceive(IDuplexSessionChannel channel, AsyncCallback callback, object state)
2769protected override IAsyncResult BeginReceive(IDuplexSessionChannel channel, TimeSpan timeout, AsyncCallback callback, object state)
2774protected override IDuplexSessionChannel CreateChannel(ChannelManagerBase channelManager, IDuplexSessionChannel innerChannel, Message firstMessage)
2823protected override void EndpointNotFound(IDuplexSessionChannel channel, Message message)
2875protected override Message EndReceive(IDuplexSessionChannel channel, IAsyncResult result)
2900public DuplexSessionChannelWrapper(ChannelManagerBase channelManager, IDuplexSessionChannel innerChannel, Message firstMessage)
2905new IDuplexSessionChannel InnerChannel
2907get { return (IDuplexSessionChannel)base.InnerChannel; }
3855IDuplexSessionChannel channel;
3858public DuplexSessionDemuxFailureAsyncResult(IChannelDemuxFailureHandler demuxFailureHandler, IDuplexSessionChannel channel, Message message, AsyncCallback callback, object state)
System\ServiceModel\Channels\ChannelRequirements.cs (12)
70typeof(IDuplexSessionChannel),
75typeof(IDuplexSessionChannel),
93typeof(IDuplexSessionChannel),
99typeof(IDuplexSessionChannel),
120typeof(IDuplexSessionChannel),
127typeof(IDuplexSessionChannel),
147typeof(IDuplexSessionChannel),
153typeof(IDuplexSessionChannel),
174typeof(IDuplexSessionChannel),
181typeof(IDuplexSessionChannel),
197return (channelType == typeof(IDuplexSessionChannel) ||
223channelType == typeof(IDuplexSessionChannel));
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (8)
137else if (type == typeof(IDuplexSessionChannel))
139return new DuplexSessionClientReliableChannelBinder(to, via, (IChannelFactory<IDuplexSessionChannel>)(object)factory, maskingMode,
441: DuplexClientReliableChannelBinder<IDuplexSessionChannel>
444IChannelFactory<IDuplexSessionChannel> factory, MaskingMode maskingMode, TolerateFaultsMode faultMode,
465protected override IAsyncResult BeginCloseChannel(IDuplexSessionChannel channel,
472protected override void CloseChannel(IDuplexSessionChannel channel, TimeSpan timeout)
477protected override void EndCloseChannel(IDuplexSessionChannel channel,
483protected override bool HasSecuritySession(IDuplexSessionChannel channel)
System\ServiceModel\Channels\OneWayChannelListener.cs (25)
642IChannelListener<IDuplexSessionChannel> innerChannelListener;
658: base(true, context.Binding, context.BuildInnerChannelListener<IDuplexSessionChannel>())
683this.innerChannelListener = (IChannelListener<IDuplexSessionChannel>)this.InnerChannelListener;
712IDuplexSessionChannel pendingChannel = null;
760IDuplexSessionChannel channel = null;
798bool ProcessEndAccept(IAsyncResult result, out IDuplexSessionChannel channel)
903this.HandleAcceptComplete((IDuplexSessionChannel)state);
909IDuplexSessionChannel channel = (IDuplexSessionChannel)sender;
919void HandleAcceptComplete(IDuplexSessionChannel channel)
984IDuplexSessionChannel channel = (IDuplexSessionChannel)result.AsyncState;
989void CompleteOpen(IDuplexSessionChannel channel, IAsyncResult result)
1040ChannelTracker<IDuplexSessionChannel, ChannelReceiver> receivers;
1041IChannelListener<IDuplexSessionChannel> innerChannelListener;
1046this.receivers = new ChannelTracker<IDuplexSessionChannel, ChannelReceiver>();
1049public void TransferInnerChannelListener(IChannelListener<IDuplexSessionChannel> innerChannelListener)
1069public void AcceptInnerChannel(DuplexSessionOneWayChannelListener listener, IDuplexSessionChannel channel)
1076public void PrepareChannel(IDuplexSessionChannel channel)
1161ChannelTracker<IDuplexSessionChannel, ChannelReceiver> receivers;
1162IChannelListener<IDuplexSessionChannel> innerChannelListener;
1169public bool TransferReceivers(ChannelTracker<IDuplexSessionChannel, ChannelReceiver> receivers,
1170IChannelListener<IDuplexSessionChannel> innerChannelListener)
1235IDuplexSessionChannel channel;
1242public ChannelReceiver(DuplexSessionOneWayChannelListener parent, IDuplexSessionChannel channel)
System\ServiceModel\Channels\ReliableChannelListener.cs (8)
1576: ReliableListenerOverSession<TChannel, TReliableChannel, IDuplexSessionChannel, IDuplexSession, Message>
1586protected override IAsyncResult BeginTryReceiveItem(IDuplexSessionChannel channel, AsyncCallback callback, object state)
1596protected override void EndTryReceiveItem(IDuplexSessionChannel channel, IAsyncResult result, out Message item)
1606protected override void SendReply(Message reply, IDuplexSessionChannel channel, Message item)
1652class ReliableDuplexListenerOverDuplex : ReliableListenerOverDuplex<IDuplexSessionChannel, ServerReliableDuplexSessionChannel>
1705class ReliableDuplexListenerOverDuplexSession : ReliableListenerOverDuplexSession<IDuplexSessionChannel, ServerReliableDuplexSessionChannel>
1725protected override void ProcessSequencedItem(IDuplexSessionChannel channel, Message message, ServerReliableDuplexSessionChannel reliableChannel, WsrmMessageInfo info, bool newChannel)
1764protected override void ProcessSequencedItem(IDuplexSessionChannel channel, Message message, ReliableInputSessionChannelOverDuplex reliableChannel, WsrmMessageInfo info, bool newChannel)
System\ServiceModel\Channels\ServiceChannelFactory.cs (10)
92else if (channelBuilder.CanBuildChannelFactory<IDuplexSessionChannel>())
94return new ServiceChannelFactoryOverDuplexSession(channelBuilder.BuildChannelFactory<IDuplexSessionChannel>(), clientRuntime, channelBuilder.Binding, false);
170if (type == typeof(IDuplexSessionChannel) && customBinding.CanBuildChannelFactory<IDuplexSessionChannel>(parameters))
179return new ServiceChannelFactoryOverDuplexSession(customBinding.BuildChannelFactory<IDuplexSessionChannel>(parameters), clientRuntime, binding, useActiveAutoClose);
227if (customBinding.CanBuildChannelFactory<IDuplexSessionChannel>(parameters))
229supportedChannels.Add(typeof(IDuplexSessionChannel), 0);
592class ServiceChannelFactoryOverDuplexSession : TypedServiceChannelFactory<IDuplexSessionChannel>
596public ServiceChannelFactoryOverDuplexSession(IChannelFactory<IDuplexSessionChannel> innerChannelFactory, ClientRuntime clientRuntime, Binding binding, bool useActiveAutoClose)
614|| typeof(TChannel) == typeof(IDuplexSessionChannel));