Skip to content

TransactionResponse Methods

Wraps a response together with the transaction information produced by an invocation.

Create(Response, TransactionInfo)

static
View source
public static TransactionResponse Create(Response response, TransactionInfo transactionInfo)
Creates a transaction response which wraps an invocation response.

Parameters

responseResponse
The invocation response.
transactionInfoTransactionInfo
The transaction information to return with the response.

Returns

The transaction response.

Dispose

override
View source
public override void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetException

View source
public Exception? GetException()
Gets the exception from the wrapped response.

Returns

The wrapped exception, or null if the invocation completed successfully.

GetResult

override
View source
public override T GetResult<T>()
Gets the result as the specified type.

Returns

The result.

ToString

override
View source
public override string ToString()
Returns a string that represents the current object.

Returns

A string that represents the current object.