Skip to main content

NonSimpleServerAttribute

A class in Root.Township, Alta.Console.

Console requirement: the command runs freely on non-simple servers; on a simple server the caller needs the listed policies (debug_features by default). Fails on clients.

Constructors​

MemberWhat it is
NonSimpleServerAttribute(params string[] roles)Creates a NonSimpleServerAttribute from roles.

Fields​

1 private and internal field
MemberWhat it is
private string[] rolesPolicies needed on a simple server; debug_features when none are given.

Methods​

MemberWhat it is
override bool Check(CommandContext context)False with no server; true on a non-simple server; otherwise true only if the caller has every listed policy.
override string ToString()Returns "Non Simple Server".