API Reference
Class
RpcCallCompletedEventArgs
Event arguments raised when a JSON-RPC call completes.
Inheritance
- EventArgs
- RpcCallCompletedEventArgs
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
Constructors
public RpcCallCompletedEventArgs(String method, TimeSpan duration, Boolean success, Exception? error = null, 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.Int64? = null
- The JSON-RPC request id, if available.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
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 Int64? RequestId { get; } #Gets the JSON-RPC request id, when available.
public DateTimeOffset Timestamp { get; } #Gets the UTC timestamp when the call completed.