forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremotesession.cs
More file actions
36 lines (27 loc) · 1.12 KB
/
Copy pathremotesession.cs
File metadata and controls
36 lines (27 loc) · 1.12 KB
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. All rights reserved.
* --********************************************************************/
using System.Management.Automation.Remoting;
namespace System.Management.Automation
{
/// <summary>
/// This abstract class is designed to provide InstandId 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
}
}