예제 #1
0
        public async virtual Task <Response> RestartWebAppsAsync(bool?softRestart = null, CancellationToken cancellationToken = default)
        {
            using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlan.RestartWebApps");
            scope.Start();
            try
            {
                var response = await _appServicePlanRestClient.RestartWebAppsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softRestart, cancellationToken).ConfigureAwait(false);

                return(response);
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }