Class PreconditionAttribute<TContext>
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true)]
public abstract class PreconditionAttribute<TContext> : Attribute
Type Parameters
TContext
- Inheritance
-
PreconditionAttribute<TContext>
- Derived
- Inherited Members
Constructors
PreconditionAttribute()
protected PreconditionAttribute()
Methods
EnsureCanExecuteAsync(TContext, IServiceProvider?)
public abstract ValueTask<PreconditionResult> EnsureCanExecuteAsync(TContext context, IServiceProvider? serviceProvider)
Parameters
context
TContextserviceProvider
IServiceProvider