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.
Afficher le fichier Open project: GoogleCloudPlatform/google-cloud-visualstudio

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

WriteRdpFile() public static méthode

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
Résultat void