File size: 1,015 Bytes
8c763fb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | // 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; }
#region KeyExchange
internal abstract void StartKeyExchange();
internal abstract void CompleteKeyExchange();
internal BaseSessionDataStructureHandler BaseSessionDataStructureHandler { get; set; }
#endregion KeyExchange
}
}
|