Class MonitoringMessageProperty
Represents the monitoring transaction message property.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class MonitoringMessageProperty
Constructors
MonitoringMessageProperty(MonitoringTransaction, RoutingContextMessageProperty)
Creates a new instance of the MonitoringMessageProperty.
Declaration
public MonitoringMessageProperty(MonitoringTransaction transaction, RoutingContextMessageProperty routingContext)
Parameters
Type | Name | Description |
---|---|---|
MonitoringTransaction | transaction | Monitoring transaction that property should be initialized with. |
RoutingContextMessageProperty | routingContext | Routing context associated with the executed operation. |
Fields
Name
Property name in the message properties collection.
Declaration
public const string Name = "Nevatech.Vsb.Repository.Monitoring.MonitoringMessageProperty"
Field Value
Type | Description |
---|---|
String |
Properties
IsChanneling
Gets or sets flag indicating that message has left the encoder and been processing by the channel stack.
Declaration
public bool IsChanneling { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsStreaming
Gets or sets flag indicating that message stream is not closed yet.
Declaration
public bool IsStreaming { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
RoutingContext
Gets or sets the routing context associated with the executed operation.
Declaration
public RoutingContextMessageProperty RoutingContext { get; set; }
Property Value
Type | Description |
---|---|
RoutingContextMessageProperty |
Transaction
Gets the monitoring transaction associated with the request.
Declaration
public MonitoringTransaction Transaction { get; }
Property Value
Type | Description |
---|---|
MonitoringTransaction |
TransportRecord
Gets or sets message recorded at transport level.
Declaration
public MonitoringRecord TransportRecord { get; set; }
Property Value
Type | Description |
---|---|
MonitoringRecord |
Methods
Get(Exception)
Returns the MonitoringMessageProperty from provided exception.
Declaration
public static MonitoringMessageProperty Get(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
Exception | exception | The exception where to look for the property. |
Returns
Type | Description |
---|---|
MonitoringMessageProperty | The MonitoringMessageProperty object, if found; otherwise, null. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if provided exception is null. |
Get(Message)
Returns the MonitoringMessageProperty from provided message.
Declaration
public static MonitoringMessageProperty Get(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message where to look for the property. |
Returns
Type | Description |
---|---|
MonitoringMessageProperty | The MonitoringMessageProperty object if found; otherwise, null. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if provided message is null. |
Get(MessageProperties)
Returns the MonitoringMessageProperty from provided collection of message properties.
Declaration
public static MonitoringMessageProperty Get(MessageProperties properties)
Parameters
Type | Name | Description |
---|---|---|
MessageProperties | properties | Collection of message properties where monitoring property may exist. |
Returns
Type | Description |
---|---|
MonitoringMessageProperty | The MonitoringMessageProperty object, if found; otherwise, null. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if provided collection of message properties is null. |