ServerOnlyAttribute
A class in Root.Township, Alta.Console.
Console requirement: the command only runs on a server (when ServerHandler.Current exists).
- Listed in Console, logging and analytics
- Inherits or implements
RequirementAttribute
Constructors
| Member | What it is |
|---|---|
ServerOnlyAttribute() | Creates a ServerOnlyAttribute with default values. |
Methods
| Member | What it is |
|---|---|
override bool Check() | True when there is a current server handler. |
override string ToString() | Returns "Server Only". |