Interface IPreOpAction<TModel, TUser>
An action that is run before the operation occurs
Namespace: Seltzr.Actions
Assembly: Seltzr.dll
Syntax
C#
public interface IPreOpAction<TModel, in TUser>
where TModel : class where TUser : class
Type Parameters
TModel
The type of model that will be operated on
TUser
The type of authenticated user
Methods
Runs this pre-operation action
C#
Task RunAsync(IApiContext<TModel, TUser> context, IQueryable<TModel> dataset)
Parameters
context
IApiContext<TModel, TUser>
The current API context
dataset
IQueryable<TModel>
The dataset that the operation will be performed on
Returns
When the action is complete