1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-26 03:38:47 +00:00
VpSharp/VpSharp.Commands/Attributes/ExecutionChecks/PreExecutionCheckAttribute.cs

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);
}