/// <inheritdoc cref="ComputeService.GetVncConsoleAync" />
 public static RemoteConsole GetVncConsole(this ComputeService service, Identifier serverId, RemoteConsoleType type)
 {
     return(service.GetVncConsoleAync(serverId, type).ForceSynchronous());
 }
 /// <inheritdoc cref="ServerReference.GetVncConsoleAsync"/>
 public static RemoteConsole GetVncConsole(this ServerReference server, RemoteConsoleType type)
 {
     return(server.GetVncConsoleAsync(type).ForceSynchronous());
 }
 /// <inheritdoc cref="ComputeApi.GetVncConsoleAsync{T}" />
 public virtual Task <RemoteConsole> GetVncConsoleAync(Identifier serverId, RemoteConsoleType type, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_computeApi.GetVncConsoleAsync <RemoteConsole>(serverId, type, cancellationToken));
 }
 /// <summary />
 public virtual Task<Console> GetConsoleAsync(Identifier serverId, ConsoleProtocol protocol, RemoteConsoleType type, CancellationToken cancellationToken = default(CancellationToken))
 {
     return _computeApi.GetConsoleAsync<Console>(serverId, protocol, type, cancellationToken);
 }
 /// <inheritdoc cref="ServerReference.GetVncConsoleAsync"/>
 public static RemoteConsole GetVncConsole(this ServerReference server, RemoteConsoleType type)
 {
     return server.GetVncConsoleAsync(type).ForceSynchronous();
 }
 /// <summary />
 public virtual Task<RemoteConsole> GetVncConsoleAync(Identifier serverId, RemoteConsoleType type, CancellationToken cancellationToken = default(CancellationToken))
 {
     return _computeApi.GetVncConsoleAsync<RemoteConsole>(serverId, type, cancellationToken);
 }
        /// <inheritdoc cref="ComputeApi.GetVncConsoleAsync{T}" />
        /// <exception cref="InvalidOperationException">When this instance was not constructed by the <see cref="ComputeService"/>, as it is missing the appropriate internal state to execute service calls.</exception>
        public async Task <RemoteConsole> GetVncConsoleAsync(RemoteConsoleType type, CancellationToken cancellationToken = default(CancellationToken))
        {
            var compute = this.GetOwnerOrThrow <ComputeApi>();

            return(await compute.GetVncConsoleAsync <RemoteConsole>(Id, type, cancellationToken).ConfigureAwait(false));
        }
Example #8
0
 /// <inheritdoc cref="ComputeService.GetConsoleAsync" />
 public static Console GetConsole(this ComputeService service, Identifier serverId, ConsoleProtocol protocol, RemoteConsoleType type)
 {
     return(service.GetConsoleAsync(serverId, protocol, type).ForceSynchronous());
 }
 /// <inheritdoc cref="ComputeApi.GetVncConsoleAsync{T}" />
 /// <exception cref="InvalidOperationException">When this instance was not constructed by the <see cref="ComputeService"/>, as it is missing the appropriate internal state to execute service calls.</exception>
 public async Task<RemoteConsole> GetVncConsoleAsync(RemoteConsoleType type, CancellationToken cancellationToken = default(CancellationToken))
 {
     var compute = this.GetOwnerOrThrow<ComputeApi>();
     return await compute.GetVncConsoleAsync<RemoteConsole>(Id, type, cancellationToken).ConfigureAwait(false);
 }
 /// <inheritdoc cref="ComputeService.GetVncConsoleAync" />
 public static RemoteConsole GetVncConsole(this ComputeService service, Identifier serverId, RemoteConsoleType type)
 {
     return service.GetVncConsoleAync(serverId, type).ForceSynchronous();
 }
Example #11
0
 /// <summary />
 public virtual Task <Console> GetConsoleAsync(Identifier serverId, ConsoleProtocol protocol, RemoteConsoleType type, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_computeApi.GetConsoleAsync <Console>(serverId, protocol, type, cancellationToken));
 }
 /// <inheritdoc cref="ComputeService.GetConsoleAsync" />
 public static Console GetConsole(this ComputeService service, Identifier serverId, ConsoleProtocol protocol, RemoteConsoleType type)
 {
     return service.GetConsoleAsync(serverId, protocol, type).ForceSynchronous();
 }