2using System.Text.RegularExpressions;
14 private string expression =
string.Empty;
15 private bool include =
true;
16 private Regex regex =
null;
32 this.expression = Pattern;
33 this.regex =
new Regex(Pattern, RegexOptions.Singleline);
42 get => this.expression;
45 this.expression = value;
49 this.regex =
new Regex(this.expression, RegexOptions.Singleline);
53 Log.
Error(
"Invalid regular expression:\r\n" + this.expression +
"\r\n\r\nError reported.\r\n" + ex.Message);
66 set => this.include = value;
76 if (this.regex is
null)
81 if (M.Success && M.Index == 0 && M.Length ==
Privilege.Length)
Static class managing the application event log. Applications and services log events on this static ...
static void Error(string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
Logs an error event.
Corresponds to a privilege in the system.
Contains a reference to a privilege
string Expression
Privilege ID regular expression to match against.
PrivilegePattern(string Pattern, bool Include)
Contains a reference to a privilege
PrivilegePattern()
Contains a reference to a privilege
bool? IsIncluded(string Privilege)
If the privilege is included.
bool Include
If privileges matching the pattern are included (true) or excluded (false).
TypeNameSerialization
How the type name should be serialized.