Show / Hide Table of Contents

Class ResolvedResponse

What a resolved request puts into its promise: the typed result and the envelope it came from, together.

Inheritance
object
ResolvedResponse
Namespace: Xrpl.Client
Assembly: Xrpl.dll
Syntax
public sealed class ResolvedResponse
Remarks

The promise is Task<object> and RequestManager knows the target type only as a System.Type, so it cannot build a XrplResponse<T> itself. It carries both halves this far and the generic client assembles them, which keeps the manager free of the generic parameter.

Public because RequestManager and its request objects are: their Promise is a Task<object> that resolves to this, and a caller working at that level has to be able to name the type it gets back. Callers of the client's own methods never see this — they get XrplResponse<T>.

Constructors

| Edit this page View Source

ResolvedResponse(object, BaseResponse)

Declaration
public ResolvedResponse(object result, BaseResponse envelope)
Parameters
Type Name Description
object result
BaseResponse envelope

Properties

| Edit this page View Source

Envelope

Declaration
public BaseResponse Envelope { get; }
Property Value
Type Description
BaseResponse
| Edit this page View Source

Result

Declaration
public object Result { get; }
Property Value
Type Description
object
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX