Windows-powershell / PowerShell-master /src /System.Management.Automation /engine /remoting /common /remotesession.cs
Download PowerShell-master/src/System.Management.Automation/engine/remoting/common/remotesession.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/remoting/common/remotesession.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/System.Management.Automation/engine/remoting/common/remotesession.cs
-
curl -L -o remotesession.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/remoting/common/remotesession.cs
1.02 kB
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Management.Automation.Remoting; | |
| namespace System.Management.Automation | |
| { | |
| /// <summary> | |
| /// This abstract class is designed to provide InstanceId and self identification for | |
| /// client and server remote session classes. | |
| /// </summary> | |
| internal abstract class RemoteSession | |
| { | |
| /// <summary> | |
| /// This is the unique id of a remote session object. | |
| /// </summary> | |
| internal Guid InstanceId { get; } = new Guid(); | |
| /// <summary> | |
| /// This indicates the remote session object is Client, Server or Listener. | |
| /// </summary> | |
| internal abstract RemotingDestination MySelf { get; } | |
| internal abstract void StartKeyExchange(); | |
| internal abstract void CompleteKeyExchange(); | |
| internal BaseSessionDataStructureHandler BaseSessionDataStructureHandler { get; set; } | |
| } | |
| } | |