IntelligenceX
Class

RpcCallCompletedEventArgs

Namespace IntelligenceX.Telemetry
Assembly IntelligenceX
Base EventArgs
Modifiers sealed

Event arguments raised when a JSON-RPC call completes.

Inheritance

  • EventArgs
  • RpcCallCompletedEventArgs

Constructors

public RpcCallCompletedEventArgs(String method, TimeSpan duration, Boolean success, Exception error = null, Nullable<Int64> requestId = null) #

Initializes a new call-completed event args instance.

Parameters

method System.String
The RPC method name.
duration System.TimeSpan
The call duration.
success System.Boolean
Whether the call succeeded.
error System.Exception = null
The exception when the call fails.
requestId System.Nullable{System.Int64} = null
The JSON-RPC request id, if available.

Properties

public String Method { get; } #

Gets the RPC method name.

public TimeSpan Duration { get; } #

Gets the call duration.

public Boolean Success { get; } #

Gets a value indicating whether the call succeeded.

public Exception Error { get; } #

Gets the exception raised on failure, if any.

public Nullable<Int64> RequestId { get; } #

Gets the JSON-RPC request id, when available.

public DateTimeOffset Timestamp { get; } #

Gets the UTC timestamp when the call completed.