Class Route
Represents the description of an entry in the message filter table used by the routing service.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class Route
Constructors
Route()
Instanciates an empty object.
Declaration
public Route()
Route(MessageFilter, EndpointDefinition, Byte)
Initializes new instance with provided message filter, endpoint, and filter priority.
Declaration
public Route(MessageFilter filter, EndpointDefinition endpoint, byte priority)
Parameters
Type | Name | Description |
---|---|---|
System.ServiceModel.Dispatcher.MessageFilter | filter | Message filter or filter chain used to match incoming messages. |
EndpointDefinition | endpoint | Endpoint specifying message destination. |
System.Byte | priority | Message filter priority in the filter table. |
Route(MessageFilter, IEnumerable<EndpointDefinition>, Byte)
Initializes new instance with provided message filter, collection of the endpoints, and filter priority.
Declaration
public Route(MessageFilter filter, IEnumerable<EndpointDefinition> endpoints, byte priority)
Parameters
Type | Name | Description |
---|---|---|
System.ServiceModel.Dispatcher.MessageFilter | filter | Message filter or filter chain used to match incoming messages. |
System.Collections.Generic.IEnumerable<EndpointDefinition> | endpoints | Collection of the endpoints specifying alternative message destinations. Collection elements are copied to an internal list. |
System.Byte | priority | Message filter priority in the filter table. |
Fields
DefaultPriority
Default or normal filter priority.
Declaration
public const byte DefaultPriority = 200
Field Value
Type | Description |
---|---|
System.Byte |
Properties
Endpoints
Gets collection of the endpoints specifying message destinations.
Declaration
public IList<EndpointDefinition> Endpoints { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<EndpointDefinition> |
Filter
Gets or sets the message filter or filter chain used to match incoming messages.
Declaration
public MessageFilter Filter { get; set; }
Property Value
Type | Description |
---|---|
System.ServiceModel.Dispatcher.MessageFilter |
Priority
Gets or sets the message filter priority in the message filter table.
Declaration
public byte Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
RouteOnHeadersOnly
Gets or sets flag indicating that filter(s) do(es) NOT need access to message body in order to route the message. If False then access to message body is required and needs to be provided (slow). Default is true.
Declaration
public bool RouteOnHeadersOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |