API Reference
Class
RpcCallCompletedEventArgs
Event arguments raised when a JSON-RPC call completes.
Inheritance
- EventArgs
- RpcCallCompletedEventArgs
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
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
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 Nullable<Int64> RequestId { get; } #Gets the JSON-RPC request id, when available.
public DateTimeOffset Timestamp { get; } #Gets the UTC timestamp when the call completed.