WebHttpDispatchOperationSelector 类
定义
支持 Web 编程模型的操作选择器。The operation selector that supports the Web programming model.
public ref class WebHttpDispatchOperationSelector : System::ServiceModel::Dispatcher::IDispatchOperationSelector
public class WebHttpDispatchOperationSelector : System.ServiceModel.Dispatcher.IDispatchOperationSelector
type WebHttpDispatchOperationSelector = class
interface IDispatchOperationSelector
Public Class WebHttpDispatchOperationSelector
Implements IDispatchOperationSelector
- 继承
-
WebHttpDispatchOperationSelector
- 实现
注解
WebHttpDispatchOperationSelector 可基于匹配的统一资源标识符 (URI) 将方法调用调度到 UriTemplateTable。The WebHttpDispatchOperationSelector dispatches method calls based on matching the Uniform Resource Identifier (URI) to a UriTemplateTable. 如果在 UriTemplateTable 中找到多个匹配项,则由 HTTP 方法执行调度。If multiple matches are found in the UriTemplateTable, dispatch is done by the HTTP method.
构造函数
| WebHttpDispatchOperationSelector() |
初始化 WebHttpDispatchOperationSelector 的新实例。Initializes a new instance of the WebHttpDispatchOperationSelector. |
| WebHttpDispatchOperationSelector(ServiceEndpoint) |
使用指定的终结点初始化 WebHttpDispatchOperationSelector 的一个新实例。Initializes a new instance of the WebHttpDispatchOperationSelector with the specified endpoint. |
字段
| HttpOperationNamePropertyName |
请求消息的消息属性的名称,该属性为请求提供选定操作的名称。The name of the message property on the request message that provides the name of the selected operation for the request. |
| HttpOperationSelectorUriMatchedPropertyName |
一个以密钥形式存储值的字符串,用于指示对服务操作的调用是否与 URI 匹配而不与 HTTP 方法匹配。A string used as a key for storing the value that indicates whether a call to a service operation was matched by the URI but not by the HTTP method. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| GetUriTemplate(String) |
获取与指定的操作名称关联的 UriTemplate。Gets the UriTemplate associated with the specified operation name. |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| SelectOperation(Message) |
选择要调用的服务操作。Selects the service operation to call. |
| SelectOperation(Message, Boolean) |
选择要调用的服务操作。Selects the service operation to call. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |