IContributeServerContextSink 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在远程处理调用的服务器端的上下文边界提供拦截接收器。
此 API 支持产品基础结构,不能在代码中直接使用。
public interface class IContributeServerContextSink
public interface IContributeServerContextSink
[System.Runtime.InteropServices.ComVisible(true)]
public interface IContributeServerContextSink
type IContributeServerContextSink = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type IContributeServerContextSink = interface
Public Interface IContributeServerContextSink
- 派生
- 属性
注解
接口 IContributeServerContextSink 由类中的 Context 上下文属性实现,该类希望在远程处理调用的服务器端的上下文边界上提供拦截接收器。
服务器上下文链由服务器上下文中的这些属性组成,这些属性实现 IContributeServerContextSink 并使用方法调用贡献接收器 GetServerContextSink 。
序列化是此类上下文属性的示例。 在这种情况下,消息接收器涉及在进一步处理调用之前获取同步基元锁。
方法
| 名称 | 说明 |
|---|---|
| GetServerContextSink(IMessageSink) |
此 API 支持产品基础结构,不能在代码中直接使用。 采用到目前为止构成的接收器链中的第一个接收器,然后在已形成链前链接其消息接收器。 |