コード例 #1
0
        /// <summary>
        /// Initialize help system with an execution context. If the execution context
        /// matches the execution context of current singleton HelpSystem object, nothing
        /// needs to be done. Otherwise, a new singleton HelpSystem object will be created
        /// with the new execution context.
        /// </summary>
        internal void Initialize()
        {
            _verboseHelpErrors = LanguagePrimitives.IsTrue(
                _executionContext.GetVariableValue(SpecialVariables.VerboseHelpErrorsVarPath, false));
            _helpErrorTracer = new HelpErrorTracer(this);

            InitializeHelpProviders();
        }
コード例 #2
0
 /// <summary>
 /// Constructor. Here help context information will be collected.
 /// </summary>
 /// <param name="helpTracer"></param>
 /// <param name="helpFile"></param>
 internal TraceFrame(HelpErrorTracer helpTracer, string helpFile)
 {
     _helpTracer = helpTracer;
     _helpFile   = helpFile;
 }
コード例 #3
0
ファイル: HelpSystem.cs プロジェクト: 40a/PowerShell
        /// <summary>
        /// Initialize help system with an execution context. If the execution context
        /// matches the execution context of current singleton HelpSystem object, nothing
        /// needs to be done. Otherwise, a new singleton HelpSystem object will be created
        /// with the new execution context.
        /// </summary>
        internal void Initialize()
        {
            _verboseHelpErrors = LanguagePrimitives.IsTrue(
                _executionContext.GetVariableValue(SpecialVariables.VerboseHelpErrorsVarPath, false));
            _helpErrorTracer = new HelpErrorTracer(this);

            InitializeHelpProviders();
        }
コード例 #4
0
ファイル: HelpSystem.cs プロジェクト: mmoenfly/GitCook2021
 internal void Initialize()
 {
     this._verboseHelpErrors = LanguagePrimitives.IsTrue(this._executionContext.GetVariable("VerboseHelpErrors", (object)false));
     this._helpErrorTracer   = new HelpErrorTracer(this);
     this.InitializeHelpProviders();
 }
コード例 #5
0
ファイル: HelpErrorTracer.cs プロジェクト: nickchal/pash
 internal TraceFrame(HelpErrorTracer helpTracer, string helpFile)
 {
     this._helpTracer = helpTracer;
     this._helpFile = helpFile;
 }