/// <summary> /// Handle the request when severity fits with the mask and continue the chain, if another part is there. /// </summary> /// <param name="message">String that should be written somewhere.</param> /// <param name="severity"></param> public void Request(string message, LinkLevel severity) { if ((severity & mask) != 0) { HandleRequest(message); } if (next != null) { next.Request(message, severity); } }
public Context(string rid, string projectFileOrFolder, bool isVerbose, IEnumerable <string> msBuildProperties, LinkLevel link, bool isNoCrossGen, string outputPath) { Rid = rid; ProjectFileOrFolder = projectFileOrFolder; IsVerbose = isVerbose; MsBuildProperties = msBuildProperties; Link = link; IsNoCrossGen = isNoCrossGen; OutputPath = outputPath; CurrentPlatform = rid == null?Platform.Current() : rid.StartsWith("win") ? Platform.Value.Windows : rid.StartsWith("osx") ? Platform.Value.MacOs : Platform.Value.Linux; TempPublishPath = Path.Combine(projectFileOrFolder, "dotnetwarp_temp"); }
public ILink(LinkLevel mask, ILink next) { this.mask = mask; this.next = next; }
public ILink(LinkLevel mask) { this.mask = mask; }
public UnityConsoleLogger(LinkLevel mask) : base(mask) { }
public IngameConsoleLogger(LinkLevel mask) : base(mask) { //add stuff }
public FileLogger(LinkLevel mask, string path) : base(mask) { Path = path; }