1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-10 21:45:41 +00:00
VpSharp/VpSharp.Commands/Attributes/ExecutionChecks/PreExecutionCheckAttribute.cs

14 lines
506 B
C#
Raw Normal View History

2022-12-05 01:43:40 +00:00
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);
}