mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 21:45:41 +00:00
14 lines
506 B
C#
14 lines
506 B
C#
|
namespace VpSharp.Commands.Attributes.ExecutionChecks;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Represents the base class for all execution check attributes.
|
|||
|
/// </summary>
|
|||
|
public abstract class PreExecutionCheckAttribute : Attribute
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Performs the execution check.
|
|||
|
/// </summary>
|
|||
|
/// <returns><see langword="true" /> if the execution check has passed; otherwise, <see langword="false" />.</returns>
|
|||
|
protected internal abstract Task<bool> PerformAsync(CommandContext context);
|
|||
|
}
|