예제 #1
0
 /// <summary>
 /// List the logs for a deployment for a website.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IDeploymentOperations.
 /// </param>
 /// <param name='deploymentId'>
 /// The deployment identifier.
 /// </param>
 /// <param name='parameters'>
 /// Additional parameters.
 /// </param>
 /// <returns>
 /// The list of deployments operation response.
 /// </returns>
 public static DeploymentListLogsResponse ListLogs(this IDeploymentOperations operations, string deploymentId, DeploymentListParameters parameters)
 {
     try
     {
         return(operations.ListLogsAsync(deploymentId, parameters).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
예제 #2
0
 /// <summary>
 /// List the logs for a deployment for a website.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IDeploymentOperations.
 /// </param>
 /// <param name='deploymentId'>
 /// The deployment identifier.
 /// </param>
 /// <param name='parameters'>
 /// Additional parameters.
 /// </param>
 /// <returns>
 /// The list of deployments operation response.
 /// </returns>
 public static Task <DeploymentListLogsResponse> ListLogsAsync(this IDeploymentOperations operations, string deploymentId, DeploymentListParameters parameters)
 {
     return(operations.ListLogsAsync(deploymentId, parameters, CancellationToken.None));
 }