Class MonitoringExtensions
Provides methods for writing or retrieving monitoring data.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public static class MonitoringExtensions
Methods
WriteMonitoringActivity(Message, Severity, String, String, Nullable<Int32>)
Writes an activity monitoring record associated with the provided message.
Declaration
public static bool WriteMonitoringActivity(this Message message, Severity severity, string activityMessage, string activityDetails, int? serviceVersionId)
Parameters
Type | Name | Description |
---|---|---|
System.ServiceModel.Channels.Message | message | Message associated with the activity that needs to be recorded. |
Severity | severity | Severity level of the log record. |
System.String | activityMessage | Text message that needs to be recorded. |
System.String | activityDetails | Optional data associated with the recorded activity. |
System.Nullable<System.Int32> | serviceVersionId | Optional identifier of the service version. |
Returns
Type | Description |
---|---|
System.Boolean | Flag indicating that activity has been successfully recorded. If False then either monitoring subsystem has been disabled or provided message can not be associated with a monitoring transaction. |
WriteMonitoringTransactionProperty(Message, ServiceConfiguration, String, String)
Writes a monitoring transaction property associated with the provided message.
Declaration
public static bool WriteMonitoringTransactionProperty(this Message message, ServiceConfiguration serviceConfiguration, string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.ServiceModel.Channels.Message | message | Message associated with the monitoring transaction which property needs to be recorded. |
ServiceConfiguration | serviceConfiguration | Service configuration corresponding to the current virtual service. |
System.String | name | Name of the property to be recorded (required). |
System.String | value | Value of the property to be recorded (optional). |
Returns
Type | Description |
---|---|
System.Boolean | Flag indicating that property has been successfully recorded. If False then either monitoring subsystem has been disabled or provided message can not be associated with a monitoring transaction. |