Example #1
0
        public CoresLibOptions(CoresMode mode, string appName, DebugMode defaultDebugMode = DebugMode.Debug, bool defaultPrintStatToConsole = false, bool defaultRecordLeakFullStack = false)
        {
            this.DebugMode           = defaultDebugMode;
            this.PrintStatToConsole  = defaultPrintStatToConsole;
            this.RecordLeakFullStack = defaultRecordLeakFullStack;

            this.Mode    = mode;
            this.AppName = appName._NonNullTrim();

            if (this.AppName._IsEmpty())
            {
                throw new ArgumentNullException("AppName");
            }
        }
Example #2
0
 public void InternalSetMode(EnsureInternal yes, CoresMode mode)
 {
     this.Mode = mode;
 }