C# Class GoogleCloudExtension.TerminalServer.TerminalServerManager

This class manages the terminal server connection that are created to connect to the Windows VM with a the given set of credentials.
Exibir arquivo Open project: GoogleCloudPlatform/google-cloud-visualstudio

Public Methods

Method Description
OpenSession ( Instance instance, WindowsInstanceCredentials credentials ) : void

Opens a new Terminal Server session against the given instance with the given set of credentials.

WriteRdpFile ( string path, Instance instance, WindowsInstanceCredentials credentials ) : void

Creates an .rdp file with the minimal set of settings required to connect to the VM.

Private Methods

Method Description
AsHexadecimalString ( byte src ) : string
CreateRdpFile ( Instance instance, WindowsInstanceCredentials credentials ) : string
EncryptPassword ( string password ) : string

Encrypts the given password in a form that mstsc.exe will accept.

GetRdpFileName ( WindowsInstanceCredentials credentials ) : string

Method Details

OpenSession() public static method

Opens a new Terminal Server session against the given instance with the given set of credentials.
public static OpenSession ( Instance instance, WindowsInstanceCredentials credentials ) : void
instance Instance The Windows VM
credentials GoogleCloudExtension.GCloud.WindowsInstanceCredentials The credentials to use to connect.
return void

WriteRdpFile() public static method

Creates an .rdp file with the minimal set of settings required to connect to the VM.
public static WriteRdpFile ( string path, Instance instance, WindowsInstanceCredentials credentials ) : void
path string
instance Instance
credentials GoogleCloudExtension.GCloud.WindowsInstanceCredentials
return void