Class MessageRouterMetadata
A message router metadata.
Inheritance
Inherited Members
Namespace: Kephas.Messaging.Distributed.Routing.Composition
Assembly: Kephas.Messaging.dll
Syntax
public class MessageRouterMetadata : AppServiceMetadata, IExpando, IDynamicMetaObjectProvider, IIndexable
Constructors
| Improve this Doc View SourceMessageRouterMetadata(IDictionary<String, Object>)
Initializes a new instance of the MessageRouterMetadata class.
Declaration
public MessageRouterMetadata(IDictionary<string, object> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | metadata | The metadata. |
MessageRouterMetadata(String, String, Boolean, Boolean, Int32, Int32, String)
Initializes a new instance of the MessageRouterMetadata class.
Declaration
public MessageRouterMetadata(string receiverUrlRegex, string channel = null, bool isFallback = false, bool isOptional = false, int processingPriority = 0, int overridePriority = 0, string serviceName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | receiverUrlRegex | The receiver URL regular expression. |
System.String | channel | Optional. The channel. |
System.Boolean | isFallback | Optional. True if this router is fallback, false if not. |
System.Boolean | isOptional | Optional. True if the router is optional. Optional routers which cannot be initialized are simply ignored. |
System.Int32 | processingPriority | Optional. The processing priority. |
System.Int32 | overridePriority | Optional. The override priority. |
System.String | serviceName | Optional. Name of the service. |
Properties
| Improve this Doc View SourceChannel
Gets or sets the channel.
Declaration
public string Channel { get; set; }
Property Value
Type | Description |
---|---|
System.String | The channel. |
IsFallback
Gets a value indicating whether this router is the fallback router.
Declaration
public bool IsFallback { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this router is fallback, false if not. |
IsOptional
Gets a value indicating whether the router is optional. Optional routers which cannot be initialized are simply ignored.
Declaration
public bool IsOptional { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if the router is optional, false otherwise. |
ReceiverUrlRegex
Gets the receiver URL regular expression.
Declaration
public string ReceiverUrlRegex { get; }
Property Value
Type | Description |
---|---|
System.String | The receiver URL regular expression. |