C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

OpenSession() публичный статический Метод

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.
Результат void

WriteRdpFile() публичный статический Метод

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
Результат void