Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
remotesession.cs35 linesDownload Raw Back to common
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4using System.Management.Automation.Remoting;5 6namespace System.Management.Automation7{8    /// <summary>9    /// This abstract class is designed to provide InstanceId and self identification for10    /// client and server remote session classes.11    /// </summary>12    internal abstract class RemoteSession13    {14        /// <summary>15        /// This is the unique id of a remote session object.16        /// </summary>17        internal Guid InstanceId { get; } = new Guid();18 19        /// <summary>20        /// This indicates the remote session object is Client, Server or Listener.21        /// </summary>22        internal abstract RemotingDestination MySelf { get; }23 24        #region KeyExchange25 26        internal abstract void StartKeyExchange();27 28        internal abstract void CompleteKeyExchange();29 30        internal BaseSessionDataStructureHandler BaseSessionDataStructureHandler { get; set; }31 32        #endregion KeyExchange33    }34}35