using System;
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Command;
namespace SuperSocket.SocketBase.Metadata
{
///
/// Command filter attribute
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public abstract class CommandFilterAttribute : Attribute
{
///
/// Gets or sets the execution order.
///
///
/// The order.
///
public int Order { get; set; }
///
/// Called when [command executing].
///
/// The command context.
public abstract void OnCommandExecuting(CommandExecutingContext commandContext);
///
/// Called when [command executed].
///
/// The command context.
public abstract void OnCommandExecuted(CommandExecutingContext commandContext);
}
}