Class MonitoringTransaction
Represents a single transaction reported from an endpoint.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class MonitoringTransaction : IValidator, IExtensibleDataObject
Constructors
MonitoringTransaction()
Initializes a new instance of MonitoringTransaction object.
Declaration
public MonitoringTransaction()
Properties
ApplicationId
Gets or sets the identifier of the consumer application that initiated the transaction.
Declaration
public int? ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
AuthorizationRuleId
Gets or sets identifier of the authorization rule that matched the transaction and subsequently permitted or denied access to the service. If not set, then no rules matched the transaction.
Declaration
public int? AuthorizationRuleId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ClientAddress
Gets or sets the service caller's IP address and port number for TCP-based communication.
Declaration
public string ClientAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Created
Gets this object's created date and time.
Declaration
public DateTime Created { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Duration
Gets duration of this transaction in milliseconds.
Declaration
public int Duration { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
The maximum transaction duration is limited to approximately 600 hours.
EndDateTime
Gets or sets the start date and time of this transaction.
Declaration
public DateTime EndDateTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
EndpointId
Gets or sets identifier of the endpoint that reported this transaction.
Declaration
public int EndpointId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
ExchangeId
Gets or sets the unique identifier of a pair of request-response messages (if WS-Addressing is enabled, that should be MessageId or ReplyTo value).
Declaration
public string ExchangeId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization roundtrips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
System.Runtime.Serialization.ExtensionDataObject |
FaultDetail
Gets or sets transaction error details.
Declaration
public string FaultDetail { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FaultReason
Gets or sets transaction error message.
Declaration
public string FaultReason { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HttpStatusCode
Gets or sets the HTTP response status code for HTTP-based communication.
Declaration
public int? HttpStatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Id
Gets or sets this domain object's id.
Declaration
public long Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
IdentityClaims
Gets or sets identity presented by the client.
Declaration
public string IdentityClaims { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsDenied
Gets or sets flag indicating that transaction has been denied by the matching authorization rule or user-provided authorization manager.
Declaration
public bool IsDenied { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NodeId
Gets or sets identifier of the node that reported this transaction.
Declaration
public int NodeId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NodeInstanceId
Gets or sets identifier of the node instance that reported this transaction.
Declaration
public int NodeInstanceId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
OperationId
Gets or sets the operation id of this transaction (can be Null for handshake messages).
Declaration
public int? OperationId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
RequestAction
Gets or sets the request message Action string.
Declaration
public string RequestAction { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RequestSize
Gets or sets size of the request message in bytes.
Declaration
public long? RequestSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
ResponseSize
Gets or sets size of the response message in bytes.
Declaration
public long? ResponseSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
ServiceAgreements
Gets collection of the service agreements identifiers that transaction is a part of.
Declaration
public Collection<ServiceAgreementTransaction> ServiceAgreements { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<ServiceAgreementTransaction> |
StartDateTime
Gets or sets the start date and time of this transaction in UTC.
Declaration
public DateTime? StartDateTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Status
Gets or sets transaction status indicating the processing result.
Declaration
public TransactionStatus Status { get; set; }
Property Value
Type | Description |
---|---|
TransactionStatus |
TransactionId
Gets or sets unique business transaction identifier.
Declaration
public Guid? TransactionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Updated
Gets this object's updated date and time.
Declaration
public DateTime? Updated { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Methods
GetSize()
Calculates and returns approximate size of the serialized to XML instance.
Declaration
public int GetSize()
Returns
Type | Description |
---|---|
System.Int32 | Approximate size of the serialized to XML instance. |
Merge(MonitoringTransaction)
Copies values from populated properties of the provided transaction to the current one.
Declaration
public void Merge(MonitoringTransaction transaction)
Parameters
Type | Name | Description |
---|---|---|
MonitoringTransaction | transaction | Transaction instance that needs to be merged with the current one. |
ToString()
Returns a string that represents the current monitoring transaction.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String that represents the current monitoring transaction. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |
Validate(Boolean)
Evaluates the state of this object.
Declaration
public bool Validate(bool createNew)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | createNew | Flag indicating that record is intended for database insert (new transaction). |
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |