Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
RunspaceInit.cs29 linesDownload Raw Back to hostifaces
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4using Dbg = System.Management.Automation.Diagnostics;5using DWORD = System.UInt32;6 7namespace System.Management.Automation.Runspaces8{9    /// <summary>10    /// Runspace class for local runspace.11    /// </summary>12    internal sealed partial13    class LocalRunspace : RunspaceBase14    {15        /// <summary>16        /// Initialize default values of preference vars.17        /// </summary>18        /// <returns>Does not return a value.</returns>19        private void InitializeDefaults()20        {21            SessionStateInternal ss = _engine.Context.EngineSessionState;22            Dbg.Assert(ss != null, "SessionState should not be null");23 24            // Add the variables that must always be there...25            ss.InitializeFixedVariables();26        }27    }28}29