Table of Contents

Class PreconditionAttribute<TContext>

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

Returns

ValueTask<PreconditionResult>