Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Operation

Syntax

Microsoft.Restier.Core.Operation.IOperationFilter

Summary

Represents a operation processor.

Methods

OnOperationExecutedAsync Abstract

Asynchronously applies logic after an operation is executed.

Syntax

System.Threading.Tasks.Task OnOperationExecutedAsync(Microsoft.Restier.Core.Operation.OperationContext context, System.Threading.CancellationToken cancellationToken)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Operation.OperationContextThe submit context.
cancellationTokenSystem.Threading.CancellationTokenA cancellation token.

Returns

Type: System.Threading.Tasks.Task A task that represents the asynchronous operation.

OnOperationExecutingAsync Abstract

Asynchronously applies logic before a operation is executed.

Syntax

System.Threading.Tasks.Task OnOperationExecutingAsync(Microsoft.Restier.Core.Operation.OperationContext context, System.Threading.CancellationToken cancellationToken)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Operation.OperationContextThe operation context.
cancellationTokenSystem.Threading.CancellationTokenA cancellation token.

Returns

Type: System.Threading.Tasks.Task A task that represents the asynchronous operation.