public async virtual Task <Response> RebootWorkerAsync(string workerName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(workerName, nameof(workerName)); using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlan.RebootWorker"); scope.Start(); try { var response = await _appServicePlanRestClient.RebootWorkerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workerName, cancellationToken).ConfigureAwait(false); return(response); } catch (Exception e) { scope.Failed(e); throw; } }