Class MonitoringTransaction
Represents a single transaction reported from an endpoint.
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 |
---|---|
Nullable<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 |
---|---|
Nullable<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 |
---|---|
String |
Created
Gets this object's created date and time.
Declaration
public DateTime Created { get; }
Property Value
Type | Description |
---|---|
DateTime |
Duration
Gets duration of this transaction in milliseconds.
Declaration
public int Duration { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
DateTime |
EndpointId
Gets or sets identifier of the endpoint that reported this transaction.
Declaration
public int EndpointId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
String |
ExtensionData
Gets or sets ExtensionDataObject that enables serialization roundtrips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
ExtensionDataObject |
FaultDetail
Gets or sets transaction error details.
Declaration
public string FaultDetail { get; set; }
Property Value
Type | Description |
---|---|
String |
FaultReason
Gets or sets transaction error message.
Declaration
public string FaultReason { get; set; }
Property Value
Type | Description |
---|---|
String |
HttpStatusCode
Gets or sets the HTTP response status code for HTTP-based communication.
Declaration
public int? HttpStatusCode { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
Id
Gets or sets this domain object's id.
Declaration
public long Id { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
IdentityClaims
Gets or sets identity presented by the client.
Declaration
public string IdentityClaims { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
Boolean |
NodeId
Gets or sets identifier of the node that reported this transaction.
Declaration
public int NodeId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
NodeInstanceId
Gets or sets identifier of the node instance that reported this transaction.
Declaration
public int NodeInstanceId { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
Nullable<Int32> |
RequestAction
Gets or sets the request message Action string.
Declaration
public string RequestAction { get; set; }
Property Value
Type | Description |
---|---|
String |
RequestSize
Gets or sets size of the request message in bytes.
Declaration
public long? RequestSize { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int64> |
ResponseSize
Gets or sets size of the response message in bytes.
Declaration
public long? ResponseSize { get; set; }
Property Value
Type | Description |
---|---|
Nullable<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 |
---|---|
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 |
---|---|
Nullable<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 |
---|---|
Nullable<Guid> |
Updated
Gets this object's updated date and time.
Declaration
public DateTime? Updated { get; }
Property Value
Type | Description |
---|---|
Nullable<DateTime> |
Methods
GetSize()
Calculates and returns approximate size of the serialized to XML instance.
Declaration
public int GetSize()
Returns
Type | Description |
---|---|
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 |
---|---|
String | String that represents the current monitoring transaction. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
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 |
---|---|---|
Boolean | createNew | Flag indicating that record is intended for database insert (new transaction). |
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |