Windows-powershell / PowerShell-master /src /System.Management.Automation /engine /hostifaces /RunspaceInit.cs
Download PowerShell-master/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 844 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs
-
curl -L -o RunspaceInit.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs
844 Bytes
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using Dbg = System.Management.Automation.Diagnostics; | |
| using DWORD = System.UInt32; | |
| namespace System.Management.Automation.Runspaces | |
| { | |
| /// <summary> | |
| /// Runspace class for local runspace. | |
| /// </summary> | |
| internal sealed partial | |
| class LocalRunspace : RunspaceBase | |
| { | |
| /// <summary> | |
| /// Initialize default values of preference vars. | |
| /// </summary> | |
| /// <returns>Does not return a value.</returns> | |
| private void InitializeDefaults() | |
| { | |
| SessionStateInternal ss = _engine.Context.EngineSessionState; | |
| Dbg.Assert(ss != null, "SessionState should not be null"); | |
| // Add the variables that must always be there... | |
| ss.InitializeFixedVariables(); | |
| } | |
| } | |
| } | |