IDuplexSessionChannel 接口

定义

定义将双工通道与会话进行关联的接口。Defines the interface that associates a duplex channel with a session.

public interface class IDuplexSessionChannel : System::ServiceModel::Channels::IDuplexChannel, System::ServiceModel::Channels::ISessionChannel<System::ServiceModel::Channels::IDuplexSession ^>
public interface IDuplexSessionChannel : System.ServiceModel.Channels.IDuplexChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IDuplexSession>
type IDuplexSessionChannel = interface
    interface IDuplexChannel
    interface IInputChannel
    interface IOutputChannel
    interface IChannel
    interface ICommunicationObject
    interface ISessionChannel<IDuplexSession>
Public Interface IDuplexSessionChannel
Implements IDuplexChannel, ISessionChannel(Of IDuplexSession)
实现

注解

重要

使用不受信任的数据从实现此接口的类中调用方法存在安全风险。Calling methods from classes that implement this interface with untrusted data is a security risk. 仅使用受信任的数据从实现此接口的类中调用方法。Call the methods from classes that implement this interface only with trusted data. 有关详细信息,请参阅数据验证For more information, see Data Validation.

IDuplexSessionChannel 接口指示 IDuplexChannel 实现 IDuplexSession 语义。The IDuplexSessionChannel interface indicates that an IDuplexChannel implements IDuplexSession semantics.

给定一个 IDuplexSessionChannel,其关联的 IDuplexSession 可通过 Session 属性进行检索。Given an IDuplexSessionChannel, its associated IDuplexSession can be retrieved through the Session property.

属性

LocalAddress

获取输入通道接收消息的地址。Gets the address on which the input channel receives messages.

(继承自 IInputChannel)
RemoteAddress

获取在输出通道上发出的消息将要到达的服务的目标。Gets the destination of the service to which messages are sent out on the output channel.

(继承自 IOutputChannel)
Session

获取与此通道关联的会话类型。Gets the type of session associated with this channel.

(继承自 ISessionChannel<TSession>)
State

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

(继承自 ICommunicationObject)
Via

获取 URI,该 URI 包含输出通道发送消息的目标传输地址。Gets the URI that contains the transport address to which messages are sent on the output channel.

(继承自 IOutputChannel)

方法

Abort()

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

(继承自 ICommunicationObject)
BeginClose(AsyncCallback, Object)

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

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

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

(继承自 ICommunicationObject)
BeginOpen(AsyncCallback, Object)

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

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

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

(继承自 ICommunicationObject)
BeginReceive(AsyncCallback, Object)

开始用于接收消息的异步操作,该操作具有关联的状态对象。Begins an asynchronous operation to receive a message that has a state object associated with it.

(继承自 IInputChannel)
BeginReceive(TimeSpan, AsyncCallback, Object)

开始用于接收消息的异步操作,该操作具有指定的超时值和状态对象与之关联。Begins an asynchronous operation to receive a message that has a specified time out and state object associated with it.

(继承自 IInputChannel)
BeginSend(Message, AsyncCallback, Object)

开始一个异步操作,向输出通道的目标传输一条消息。Begins an asynchronous operation to transmit a message to the destination of the output channel.

(继承自 IOutputChannel)
BeginSend(Message, TimeSpan, AsyncCallback, Object)

开始一个异步操作,在指定时间间隔内向输出通道的目标传输消息。Begins an asynchronous operation to transmit a message to the destination of the output channel within a specified interval of time.

(继承自 IOutputChannel)
BeginTryReceive(TimeSpan, AsyncCallback, Object)

开始用于接收消息的异步操作,该操作具有指定的超时值和状态对象与之关联。Begins an asynchronous operation to receive a message that has a specified time out and state object associated with it.

(继承自 IInputChannel)
BeginWaitForMessage(TimeSpan, AsyncCallback, Object)

开始异步等待消息到达操作,该操作具有指定的超时值和状态对象与之关联。Begins an asynchronous wait-for-a-message-to-arrive operation that has a specified time out and state object associated with it.

(继承自 IInputChannel)
Close()

让通信对象的状态从当前值变成“已关闭”。Causes a communication object to transition from its current state into the closed state.

(继承自 ICommunicationObject)
Close(TimeSpan)

让通信对象的状态从当前值变成“已关闭”。Causes a communication object to transition from its current state into the closed state.

(继承自 ICommunicationObject)
EndClose(IAsyncResult)

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

(继承自 ICommunicationObject)
EndOpen(IAsyncResult)

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

(继承自 ICommunicationObject)
EndReceive(IAsyncResult)

完成用于接收消息的异步操作。Completes an asynchronous operation to receive a message.

(继承自 IInputChannel)
EndSend(IAsyncResult)

完成一个异步操作,向输出通道的目标传输消息。Completes an asynchronous operation to transmit a message to the destination of the output channel.

(继承自 IOutputChannel)
EndTryReceive(IAsyncResult, Message)

完成用于接收消息的指定异步操作。Completes the specified asynchronous operation to receive a message.

(继承自 IInputChannel)
EndWaitForMessage(IAsyncResult)

完成指定的异步等待消息操作。Completes the specified asynchronous wait-for-a-message operation.

(继承自 IInputChannel)
GetProperty<T>()

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

(继承自 IChannel)
Open()

让通信对象的状态从“已创建”变成“已打开”。Causes a communication object to transition from the created state into the opened state.

(继承自 ICommunicationObject)
Open(TimeSpan)

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

(继承自 ICommunicationObject)
Receive()

如果有可用消息,则返回接收到的消息。Returns the message received, if one is available. 如果没有可用消息,则在默认的时间间隔内阻塞。If a message is not available, blocks for a default interval of time.

(继承自 IInputChannel)
Receive(TimeSpan)

如果有可用消息,则返回接收到的消息。Returns the message received, if one is available. 如果没有可用消息,则在指定的时间间隔内阻塞。If a message is not available, blocks for a specified interval of time.

(继承自 IInputChannel)
Send(Message)

向输出通道的目标传输一条消息。Transmits a message to the destination of the output channel.

(继承自 IOutputChannel)
Send(Message, TimeSpan)

在指定时间间隔内在当前输出通道上发送一条消息。Sends a message on the current output channel within a specified interval of time.

(继承自 IOutputChannel)
TryReceive(TimeSpan, Message)

尝试在指定的时间间隔内接收消息。Tries to receive a message within a specified interval of time.

(继承自 IInputChannel)
WaitForMessage(TimeSpan)

返回一个值,该值指示消息是否在指定的时间间隔内到达。Returns a value that indicates whether a message has arrived within a specified interval of time.

(继承自 IInputChannel)

事件

Closed

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

(继承自 ICommunicationObject)
Closing

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

(继承自 ICommunicationObject)
Faulted

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

(继承自 ICommunicationObject)
Opened

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

(继承自 ICommunicationObject)
Opening

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

(继承自 ICommunicationObject)

适用于