Show / Hide Table of Contents

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

| Improve this Doc View Source

RunAsync(IApiContext<TModel, TUser>, IQueryable<TModel>)

Runs this pre-operation action

C#
Task RunAsync(IApiContext<TModel, TUser> context, IQueryable<TModel> dataset)
Parameters
contextIApiContext<TModel, TUser>

The current API context

datasetIQueryable<TModel>

The dataset that the operation will be performed on

Returns

Task

When the action is complete

  • Improve this Doc
  • View Source
Back to top Generated by DocFX