Table of Contents

Class OperationExtensions

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll

Extension methods for IOperation.

public static class OperationExtensions
Inheritance
OperationExtensions
Inherited Members

Methods

SafeExecuteAsync(IOperation, TestingContext, object)

Executes the operation safely, catching any exceptions and returning them as the response. This ensures that the framework always receives a response (either the actual result or an exception).

public static Task<object> SafeExecuteAsync(this IOperation operation, TestingContext context, object request)

Parameters

operation IOperation

The operation to invoke.

context TestingContext

The testing context.

request object

The request to execute.

Returns

Task<object>

The response from execution. If an exception is thrown during execution, the exception itself is returned as the response.