RoutingBehavior(RoutingConfiguration) 构造函数
定义
使用指定的路由配置创建 RoutingBehavior 类的新实例。Creates a new instance of the RoutingBehavior class with the specified routing configuration.
public:
RoutingBehavior(System::ServiceModel::Routing::RoutingConfiguration ^ routingConfiguration);
public RoutingBehavior (System.ServiceModel.Routing.RoutingConfiguration routingConfiguration);
new System.ServiceModel.Routing.RoutingBehavior : System.ServiceModel.Routing.RoutingConfiguration -> System.ServiceModel.Routing.RoutingBehavior
Public Sub New (routingConfiguration As RoutingConfiguration)
参数
- routingConfiguration
- RoutingConfiguration
路由配置。The routing configuration.
注解
RoutingBehavior 将注册路由服务使用的所有运行时组件,包括通道初始值设定项、SoapProcessingBehavior 和 RoutingExtension(它使用指定的 RoutingConfiguration)。The RoutingBehavior registers all of the run-time components used by the routing service, including the channel initializer, SoapProcessingBehavior, and the RoutingExtension, which uses the specified RoutingConfiguration.