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"); } }
public void InternalSetMode(EnsureInternal yes, CoresMode mode) { this.Mode = mode; }