Table of Contents

Class ParameterPreconditionAttribute<TContext>

Namespace
NetCord.Services
Assembly
NetCord.Services.dll
[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 object
context TContext
serviceProvider IServiceProvider

Returns

ValueTask<PreconditionResult>