Exemplo n.º 1
0
 public virtual Response RestartWebApps(bool?softRestart = null, CancellationToken cancellationToken = default)
 {
     using var scope = _appServicePlanClientDiagnostics.CreateScope("AppServicePlan.RestartWebApps");
     scope.Start();
     try
     {
         var response = _appServicePlanRestClient.RestartWebApps(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softRestart, cancellationToken);
         return(response);
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }