Class MonitoringFilterBase
Represents the base class for all monitoring filters. Monitoring filter is a component responsible for transforming and delivering monitoring transactions, records, and properties.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Monitoring.Filters
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[KnownType(typeof(MaskingMonitoringFilter))]
[KnownType(typeof(WritingMonitoringFilter))]
[KnownType(typeof(CustomMonitoringFilter))]
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public abstract class MonitoringFilterBase : IValidator, IEquatable<MonitoringFilterBase>, IExtensibleDataObject
Constructors
MonitoringFilterBase()
Declaration
protected MonitoringFilterBase()
Properties
ErrorMessage
Gets the summary of validation errors.
Declaration
public string ErrorMessage { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
ExtensionData
Gets or sets ExtensionDataObject that enables serialization round-trips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
| Type | Description |
|---|---|
| ExtensionDataObject |
InnerFilter
Gets or sets the next filter in the pipeline.
Declaration
protected MonitoringFilterBase InnerFilter { get; set; }
Property Value
| Type | Description |
|---|---|
| MonitoringFilterBase |
Methods
Equals(MonitoringFilterBase)
Determines whether the specified object is equal to the current object.
Declaration
public virtual bool Equals(MonitoringFilterBase other)
Parameters
| Type | Name | Description |
|---|---|---|
| MonitoringFilterBase | other | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | True, if objects are equal. False, if objects are not equal. |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | Hash code of the current instance. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public virtual bool Validate()
Returns
| Type | Description |
|---|---|
| bool | True if state is valid; otherwise, false. |
WriteProperty(MonitoringTransactionProperty, MonitoringFilterContext)
Modifies or delivers the provided monitoring transaction property.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Property")]
public virtual void WriteProperty(MonitoringTransactionProperty property, MonitoringFilterContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| MonitoringTransactionProperty | property | Monitoring transaction property to be delivered. |
| MonitoringFilterContext | context | Context of the executed operation. |
WriteRecord(MonitoringRecord, MonitoringFilterContext)
Modifies or delivers the provided monitoring record.
Declaration
public virtual void WriteRecord(MonitoringRecord record, MonitoringFilterContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| MonitoringRecord | record | Monitoring record to be delivered. |
| MonitoringFilterContext | context | Context of the executed operation. |
WriteTransaction(MonitoringTransaction, MonitoringFilterContext)
Modifies or delivers the provided monitoring transaction.
Declaration
public virtual void WriteTransaction(MonitoringTransaction transaction, MonitoringFilterContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| MonitoringTransaction | transaction | Monitoring transaction to be delivered. |
| MonitoringFilterContext | context | Context of the executed operation. |