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