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