Class
RpcCallCompletedEventArgs
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.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.