Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
        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");
        }
Beispiel #3
0
 public ILink(LinkLevel mask, ILink next)
 {
     this.mask = mask;
     this.next = next;
 }
Beispiel #4
0
 public ILink(LinkLevel mask)
 {
     this.mask = mask;
 }
Beispiel #5
0
 public UnityConsoleLogger(LinkLevel mask)
     : base(mask)
 {
 }
Beispiel #6
0
 public IngameConsoleLogger(LinkLevel mask)
     : base(mask)
 {
     //add stuff
 }
Beispiel #7
0
 public FileLogger(LinkLevel mask, string path)
     : base(mask)
 {
     Path = path;
 }