TransportDuplexSessionChannel 类

定义

public ref class TransportDuplexSessionChannel abstract : System::ServiceModel::Channels::TransportOutputChannel, System::ServiceModel::Channels::ISessionChannel<System::ServiceModel::Channels::IAsyncDuplexSession ^>, System::ServiceModel::Channels::ISessionChannel<System::ServiceModel::Channels::IDuplexSession ^>
public abstract class TransportDuplexSessionChannel : System.ServiceModel.Channels.TransportOutputChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IAsyncDuplexSession>, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IDuplexSession>
type TransportDuplexSessionChannel = class
    inherit TransportOutputChannel
    interface IDuplexSessionChannel
    interface IDuplexChannel
    interface IInputChannel
    interface IChannel
    interface ICommunicationObject
    interface IOutputChannel
    interface ISessionChannel<IDuplexSession>
    interface IAsyncInputChannel
    interface IAsyncCommunicationObject
    interface IAsyncOutputChannel
    interface ISessionChannel<IAsyncDuplexSession>
Public MustInherit Class TransportDuplexSessionChannel
Inherits TransportOutputChannel
Implements ISessionChannel(Of IAsyncDuplexSession), ISessionChannel(Of IDuplexSession)
继承
实现

构造函数

TransportDuplexSessionChannel(ChannelManagerBase, ITransportFactorySettings, EndpointAddress, Uri, EndpointAddress, Uri)

属性

BufferManager
DefaultCloseTimeout

获取为完成关闭操作提供的默认时间间隔。

(继承自 ChannelBase)
DefaultOpenTimeout

获取为完成打开操作提供的默认时间间隔。

(继承自 ChannelBase)
DefaultReceiveTimeout

获取为完成接收操作提供的默认时间间隔。

(继承自 ChannelBase)
DefaultSendTimeout

获取为完成发送操作提供的默认时间间隔。

(继承自 ChannelBase)
EventTraceActivity (继承自 TransportOutputChannel)
IsDisposed

获取一个值,该值指示通信对象是否已被释放。

(继承自 CommunicationObject)
IsStreamedOutput
LocalAddress
Manager

获取与当前通道关联的通道管理器。

(继承自 ChannelBase)
ManualAddressing (继承自 TransportOutputChannel)
MessageEncoder
MessageVersion (继承自 TransportOutputChannel)
RemoteAddress (继承自 TransportOutputChannel)
RemoteSecurity
SendLock
Session
State

获取指示通信对象当前状态的值。

(继承自 CommunicationObject)
ThisLock

获取在状态转换过程中保护类实例的相互排斥锁。

(继承自 CommunicationObject)
Via (继承自 TransportOutputChannel)

方法

Abort()

使通信对象立即从其当前状态转换到正在关闭状态。

(继承自 CommunicationObject)
AddHeadersTo(Message) (继承自 TransportOutputChannel)
ApplyChannelBinding(Message)
BeginClose(AsyncCallback, Object)

开始一个异步操作以关闭通信对象。

(继承自 CommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定超时内关闭通信对象。

(继承自 CommunicationObject)
BeginCloseOutput(TimeSpan, Action<Object>, Object)
BeginOpen(AsyncCallback, Object)

开始一个异步操作以打开通信对象。

(继承自 CommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定时间间隔内打开通信对象。

(继承自 CommunicationObject)
BeginReceive(AsyncCallback, Object)
BeginReceive(TimeSpan, AsyncCallback, Object)
BeginSend(Message, AsyncCallback, Object) (继承自 OutputChannel)
BeginSend(Message, TimeSpan, AsyncCallback, Object) (继承自 OutputChannel)
BeginTryReceive(TimeSpan, AsyncCallback, Object)
BeginWaitForMessage(TimeSpan, AsyncCallback, Object)
Close()

使通信对象从其当前状态转换到关闭状态。

(继承自 CommunicationObject)
Close(TimeSpan)

使通信对象在指定时间间隔内从当前状态转换到关闭状态。

(继承自 CommunicationObject)
CloseOutputSession(TimeSpan)
CloseOutputSessionAsync(TimeSpan)
CloseOutputSessionCore(TimeSpan)
CloseOutputSessionCoreAsync(TimeSpan)
CompleteClose(TimeSpan)
EncodeMessage(Message)
EndClose(IAsyncResult)

完成一个异步操作以关闭通信对象。

(继承自 CommunicationObject)
EndOpen(IAsyncResult)

完成一个异步操作以打开通信对象。

(继承自 CommunicationObject)
EndReceive(IAsyncResult)
EndSend(IAsyncResult) (继承自 OutputChannel)
EndTryReceive(IAsyncResult, Message)
EndWaitForMessage(IAsyncResult)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
Fault()

使通信对象从其当前状态转换到出错状态。

(继承自 CommunicationObject)
FinishWritingMessage()
GetCommunicationObjectType()

获取通信对象的类型。

(继承自 CommunicationObject)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetProperty<T>() (继承自 OutputChannel)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
OnAbort()
OnBeginClose(TimeSpan, AsyncCallback, Object)
OnBeginOpen(TimeSpan, AsyncCallback, Object)

在调用了异步打开操作,从而引起通信对象转换为正在打开状态的情况下,该方法将插入处理。

(继承自 CommunicationObject)
OnClose(TimeSpan)
OnCloseAsync(TimeSpan)
OnClosed()
OnClosing()

在通信对象转换到正在关闭状态的过程中被调用。

(继承自 CommunicationObject)
OnEndClose(IAsyncResult)
OnEndOpen(IAsyncResult)

在打开通信对象时完成一个异步操作。

(继承自 CommunicationObject)
OnFaulted()
OnOpen(TimeSpan)

在通信对象转换为打开状态(此过程必须在指定时间间隔内完成)后插入对通信对象的处理。

(继承自 CommunicationObject)
OnOpenAsync(TimeSpan) (继承自 CommunicationObject)
OnOpened()

在通信对象转换到已打开状态的过程中被调用。

(继承自 CommunicationObject)
OnOpening()

在通信对象转换到正在打开状态的过程中被调用。

(继承自 CommunicationObject)
OnReceiveMessage(Message)
OnSend(Message, TimeSpan)
OnSendAsync(Message, TimeSpan)
OnSendCore(Message, TimeSpan)
Open()

使通信对象从已创建状态转换到已打开状态。

(继承自 CommunicationObject)
Open(TimeSpan)

使通信对象在指定时间间隔内从已创建状态转换到已打开状态。

(继承自 CommunicationObject)
PrepareMessage(Message)
Receive()
Receive(TimeSpan)
ReceiveAsync()
ReceiveAsync(TimeSpan)
ReturnConnectionIfNecessary(Boolean, TimeSpan)
Send(Message) (继承自 OutputChannel)
Send(Message, TimeSpan) (继承自 OutputChannel)
SendAsync(Message) (继承自 OutputChannel)
SendAsync(Message, TimeSpan) (继承自 OutputChannel)
SetMessageSource(IMessageSource)
StartWritingBufferedMessage(Message, ArraySegment<Byte>, Boolean, TimeSpan, Action<Object>, Object)
StartWritingStreamedMessage(Message, TimeSpan, Action<Object>, Object)
ThrowIfDisposed()

如果通信对象已释放,则引发异常。

(继承自 CommunicationObject)
ThrowIfDisposedOrImmutable()

如果通信对象的 State 属性未设置为 Created 状态,则引发异常。

(继承自 CommunicationObject)
ThrowIfDisposedOrNotOpen()

如果通信对象未处于 Opened 状态,则引发异常。

(继承自 CommunicationObject)
ToString()

返回表示当前对象的字符串。

(继承自 Object)
TryReceive(TimeSpan, Message)
TryReceiveAsync(TimeSpan)
WaitForMessage(TimeSpan)
WaitForMessageAsync(TimeSpan)

事件

Closed

当通信对象转换到已关闭状态时发生。

(继承自 CommunicationObject)
Closing

当通信对象转换到正在关闭状态时发生。

(继承自 CommunicationObject)
Faulted

在通信对象转换到出错状态时发生。

(继承自 CommunicationObject)
Opened

当通信对象转换到已打开状态时发生。

(继承自 CommunicationObject)
Opening

当通信对象转换到正在打开状态时发生。

(继承自 CommunicationObject)

显式接口实现

IAsyncCommunicationObject.CloseAsync(TimeSpan) (继承自 CommunicationObject)
IAsyncCommunicationObject.OpenAsync(TimeSpan) (继承自 CommunicationObject)
IDefaultCommunicationTimeouts.CloseTimeout

获取 close 方法(由通信对象调用)在超时之前的时间间隔。

(继承自 ChannelBase)
IDefaultCommunicationTimeouts.OpenTimeout

获取 open 方法(由通信对象调用)在超时之前的时间间隔。

(继承自 ChannelBase)
IDefaultCommunicationTimeouts.ReceiveTimeout

获取 receive 方法(由通信对象调用)在超时之前的时间间隔。

(继承自 ChannelBase)
IDefaultCommunicationTimeouts.SendTimeout

获取 send 方法(由通信对象调用)在超时之前的时间间隔。

(继承自 ChannelBase)
ISessionChannel<IAsyncDuplexSession>.Session

扩展方法

CloseHelperAsync(ICommunicationObject, TimeSpan)
OpenHelperAsync(ICommunicationObject, TimeSpan)
GetInternalCloseTimeout(CommunicationObject)

适用于