Esempio n. 1
0
 /// <inheritdoc cref="ComputeApi.RescueServerAsync" />
 public virtual Task <string> RescueServerAsync(Identifier serverId, RescueServerRequest request = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_computeApi.RescueServerAsync(serverId, request, cancellationToken));
 }
Esempio n. 2
0
        /// <inheritdoc cref="ComputeApi.RescueServerAsync" />
        /// <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 <string> RescueAsync(RescueServerRequest request = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            var compute = this.GetOwnerOrThrow <ComputeApi>();

            return(await compute.RescueServerAsync(Id, request, cancellationToken).ConfigureAwait(false));
        }