Exemplo n.º 1
0
 /// <inheritdoc cref="ComputeApi.RebootServerAsync{TRequest}" />
 public Task RebootServerAsync(Identifier serverId, RebootServerRequest request = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_computeApi.RebootServerAsync(serverId, request, cancellationToken));
 }
Exemplo n.º 2
0
 /// <inheritdoc cref="ServerReference.RebootAsync"/>
 public static void Reboot(this ServerReference server, RebootServerRequest request = null)
 {
     server.RebootAsync(request).ForceSynchronous();
 }
Exemplo n.º 3
0
 /// <inheritdoc cref="ComputeApi.RebootServerAsync{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 RebootAsync(RebootServerRequest request = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     var compute = this.GetOwnerOrThrow<ComputeApi>();
     await compute.RebootServerAsync(Id, request, cancellationToken).ConfigureAwait(false);
 }
Exemplo n.º 4
0
 /// <inheritdoc cref="ComputeApi.RebootServerAsync{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 RebootAsync(RebootServerRequest request = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     var compute = this.GetOwnerOrThrow <ComputeApi>();
     await compute.RebootServerAsync(Id, request, cancellationToken).ConfigureAwait(false);
 }
 /// <inheritdoc cref="ComputeService.RebootServerAsync" />
 public static void RebootServer(this ComputeService service, Identifier serverId, RebootServerRequest request = null)
 {
     service.RebootServerAsync(serverId, request).ForceSynchronous();
 }