Class RoutingContextMessageProperty
Provides information about the source of the message.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class RoutingContextMessageProperty
Fields
Name
Property name in the message properties collection.
Declaration
public const string Name = "Nevatech.Vsb.Repository.Monitoring.RoutingContextMessageProperty"
Field Value
Type | Description |
---|---|
System.String |
Properties
InboundEndpoint
Gets or sets the inbound endpoint that received this message.
Declaration
public RoutingEndpointDefinition InboundEndpoint { get; set; }
Property Value
Type | Description |
---|---|
RoutingEndpointDefinition |
InboundPrincipal
Gets or sets the identity of the service caller.
Declaration
public ClaimsPrincipal InboundPrincipal { get; set; }
Property Value
Type | Description |
---|---|
System.Security.Claims.ClaimsPrincipal |
InboundRequest
Gets or sets the operation information.
Declaration
public InboundRequestMessageDefinition InboundRequest { get; set; }
Property Value
Type | Description |
---|---|
InboundRequestMessageDefinition |
OutboundEndpoint
Gets or sets the outbound endpoint that received this message.
Declaration
public RoutingEndpointDefinition OutboundEndpoint { get; set; }
Property Value
Type | Description |
---|---|
RoutingEndpointDefinition |
Properties
Gets collection of properties to be passed between message processing components. This collection is initialized with message properties extracted from the message used to create this instance which is usually inbound request message.
Declaration
public MessageProperties Properties { get; }
Property Value
Type | Description |
---|---|
System.ServiceModel.Channels.MessageProperties |
RequestMatch
Gets or sets the result of the inbound request message template match.
Declaration
public MessageTemplateMatch RequestMatch { get; set; }
Property Value
Type | Description |
---|---|
MessageTemplateMatch |
Methods
Get(Exception)
Returns the RoutingContextMessageProperty from provided exception.
Declaration
public static RoutingContextMessageProperty Get(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception where to look for the property. |
Returns
Type | Description |
---|---|
RoutingContextMessageProperty | The RoutingContextMessageProperty object, if found; otherwise, null. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if provided exception is null. |
Get(Message, Boolean)
Returns the RoutingContextMessageProperty from provided message.
Declaration
public static RoutingContextMessageProperty Get(Message message, bool createIfNotFound)
Parameters
Type | Name | Description |
---|---|---|
System.ServiceModel.Channels.Message | message | The message where to look for the property. |
System.Boolean | createIfNotFound | Flag indicating that if property is not found in the message, it has to be created and added to the message properties. |
Returns
Type | Description |
---|---|
RoutingContextMessageProperty | The RoutingContextMessageProperty object if found; otherwise, null. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if provided message is null. |
Get(MessageProperties, Boolean)
Returns the RoutingContextMessageProperty from the provided message properties collection.
Declaration
public static RoutingContextMessageProperty Get(MessageProperties properties, bool createIfNotFound)
Parameters
Type | Name | Description |
---|---|---|
System.ServiceModel.Channels.MessageProperties | properties | The message properties collection where to look for the property. |
System.Boolean | createIfNotFound | Flag indicating that if property is not found in the collection, it has to be created and added to the message properties. |
Returns
Type | Description |
---|---|
RoutingContextMessageProperty | The RoutingContextMessageProperty object if found; otherwise, null. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if provided message properties collection is null. |