Class OperationExtensions
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
operationIOperationThe operation to invoke.
contextTestingContextThe testing context.
requestobjectThe request to execute.