IDuplexContextChannel IDuplexContextChannel IDuplexContextChannel IDuplexContextChannel Interface

定义

定义客户端信道必须实现用于在双工会话中交换消息的接口。Defines the interface a client channel must implement to exchange messages in a duplex session.

public interface class IDuplexContextChannel : System::ServiceModel::IContextChannel, System::ServiceModel::IExtensibleObject<System::ServiceModel::IContextChannel ^>
public interface IDuplexContextChannel : System.ServiceModel.IContextChannel, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel>
type IDuplexContextChannel = interface
    interface IContextChannel
    interface IChannel
    interface ICommunicationObject
    interface IExtensibleObject<IContextChannel>
Public Interface IDuplexContextChannel
Implements IContextChannel, IExtensibleObject(Of IContextChannel)
实现

注解

双工协定需要会话,因为必须建立上下文才能将客户端和服务之间发送的一组消息关联在一起。A duplex contract requires a session, because a context must be established to correlate the set of messages being sent between the client and the service.

属性

AllowOutputBatching AllowOutputBatching AllowOutputBatching AllowOutputBatching

获取或设置一个值,该值指示 Windows Communication Foundation (WCF) 在给出消息以进行传输之前存储一组消息。Gets or sets a value that instructs Windows Communication Foundation (WCF) to store a set of messages before giving the messages to the transport.

(Inherited from IContextChannel)
AutomaticInputSessionShutdown AutomaticInputSessionShutdown AutomaticInputSessionShutdown AutomaticInputSessionShutdown

获取或设置一个值,该值指示输入会话是否自动关闭。Gets or sets a value that indicates whether the input session is shutdown automatically.

CallbackInstance CallbackInstance CallbackInstance CallbackInstance

获取或设置与双工消息交换关联的实例上下文。Gets or sets the instance context associated with the duplex message exchange.

Extensions Extensions Extensions Extensions

获取此可扩展对象的扩展对象集合。Gets a collection of extension objects for this extensible object.

(Inherited from IExtensibleObject<T>)
InputSession InputSession InputSession InputSession

获取通道的输入会话。Gets the input session for the channel.

(Inherited from IContextChannel)
LocalAddress LocalAddress LocalAddress LocalAddress

获取通道的本地终结点。Gets the local endpoint for the channel.

(Inherited from IContextChannel)
OperationTimeout OperationTimeout OperationTimeout OperationTimeout

获取或设置一个时间段,操作必须在此时间段内完成否则将引发异常。Gets or sets the time period within which an operation must complete or an exception is thrown.

(Inherited from IContextChannel)
OutputSession OutputSession OutputSession OutputSession

获取与通道关联的输出会话(如果有)。Gets the output session associated with the channel, if any.

(Inherited from IContextChannel)
RemoteAddress RemoteAddress RemoteAddress RemoteAddress

获取与通道关联的远程地址。Gets the remote address associated with the channel.

(Inherited from IContextChannel)
SessionId SessionId SessionId SessionId

返回当前会话的标识符(如果有)。Returns an identifier for the current session, if any.

(Inherited from IContextChannel)
State State State State

获取面向通信的对象的当前状态。Gets the current state of the communication-oriented object.

(Inherited from ICommunicationObject)

方法

Abort() Abort() Abort() Abort()

使通信对象立即从其当前状态转换到关闭状态。Causes a communication object to transition immediately from its current state into the closed state.

(Inherited from ICommunicationObject)
BeginClose(AsyncCallback, Object) BeginClose(AsyncCallback, Object) BeginClose(AsyncCallback, Object) BeginClose(AsyncCallback, Object)

开始一个异步操作以关闭通信对象。Begins an asynchronous operation to close a communication object.

(Inherited from ICommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object) BeginClose(TimeSpan, AsyncCallback, Object) BeginClose(TimeSpan, AsyncCallback, Object) BeginClose(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定超时内关闭通信对象。Begins an asynchronous operation to close a communication object with a specified timeout.

(Inherited from ICommunicationObject)
BeginCloseOutputSession(TimeSpan, AsyncCallback, Object) BeginCloseOutputSession(TimeSpan, AsyncCallback, Object) BeginCloseOutputSession(TimeSpan, AsyncCallback, Object) BeginCloseOutputSession(TimeSpan, AsyncCallback, Object)

开始异步操作以关闭具有指定超时及关联状态对象的客户端上的输出会话。Begins an asynchronous operation to close an output session on the client that has a specified time out and state object associated with it.

BeginOpen(AsyncCallback, Object) BeginOpen(AsyncCallback, Object) BeginOpen(AsyncCallback, Object) BeginOpen(AsyncCallback, Object)

开始一个异步操作以打开通信对象。Begins an asynchronous operation to open a communication object.

(Inherited from ICommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object) BeginOpen(TimeSpan, AsyncCallback, Object) BeginOpen(TimeSpan, AsyncCallback, Object) BeginOpen(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定时间间隔内打开通信对象。Begins an asynchronous operation to open a communication object within a specified interval of time.

(Inherited from ICommunicationObject)
Close() Close() Close() Close()

使通信对象从其当前状态转换到关闭状态。Causes a communication object to transition from its current state into the closed state.

(Inherited from ICommunicationObject)
Close(TimeSpan) Close(TimeSpan) Close(TimeSpan) Close(TimeSpan)

使通信对象从其当前状态转换到关闭状态。Causes a communication object to transition from its current state into the closed state.

(Inherited from ICommunicationObject)
CloseOutputSession(TimeSpan) CloseOutputSession(TimeSpan) CloseOutputSession(TimeSpan) CloseOutputSession(TimeSpan)

关闭与双工通道关联的客户端上的输出会话。Closes the output session on the client associated with the duplex channel.

EndClose(IAsyncResult) EndClose(IAsyncResult) EndClose(IAsyncResult) EndClose(IAsyncResult)

完成一个异步操作以关闭通信对象。Completes an asynchronous operation to close a communication object.

(Inherited from ICommunicationObject)
EndCloseOutputSession(IAsyncResult) EndCloseOutputSession(IAsyncResult) EndCloseOutputSession(IAsyncResult) EndCloseOutputSession(IAsyncResult)

完成异步操作以关闭客户端上的输出会话。Completes an asynchronous operation to close an output session on the client.

EndOpen(IAsyncResult) EndOpen(IAsyncResult) EndOpen(IAsyncResult) EndOpen(IAsyncResult)

完成一个异步操作以打开通信对象。Completes an asynchronous operation to open a communication object.

(Inherited from ICommunicationObject)
GetProperty<T>() GetProperty<T>() GetProperty<T>() GetProperty<T>()

从通道堆栈的适当层返回所请求的类型化对象(如果存在)。Returns a typed object requested, if present, from the appropriate layer in the channel stack.

(Inherited from IChannel)
Open() Open() Open() Open()

使通信对象从已创建状态转换到已打开状态。Causes a communication object to transition from the created state into the opened state.

(Inherited from ICommunicationObject)
Open(TimeSpan) Open(TimeSpan) Open(TimeSpan) Open(TimeSpan)

使通信对象在指定时间间隔内从已创建状态转换到已打开状态。Causes a communication object to transition from the created state into the opened state within a specified interval of time.

(Inherited from ICommunicationObject)

事件

Closed Closed Closed Closed

当通信对象完成从正在关闭状态转换到已关闭状态时发生。Occurs when the communication object completes its transition from the closing state into the closed state.

(Inherited from ICommunicationObject)
Closing Closing Closing Closing

当通信对象首次进入正在关闭状态时发生。Occurs when the communication object first enters the closing state.

(Inherited from ICommunicationObject)
Faulted Faulted Faulted Faulted

当通信对象首次进入出错状态时发生。Occurs when the communication object first enters the faulted state.

(Inherited from ICommunicationObject)
Opened Opened Opened Opened

当通信对象完成从正在打开状态转换到已打开状态时发生。Occurs when the communication object completes its transition from the opening state into the opened state.

(Inherited from ICommunicationObject)
Opening Opening Opening Opening

当通信对象首次进入正在打开状态时发生。Occurs when the communication object first enters the opening state.

(Inherited from ICommunicationObject)

适用于