示例#1
0
 /// <summary>
 /// Gets a role from a cloud service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='roleName'>
 /// Name of the role.
 /// </param>
 /// <param name='resourceGroupName'>
 /// </param>
 /// <param name='cloudServiceName'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CloudServiceRole> GetAsync(this ICloudServiceRolesOperations operations, string roleName, string resourceGroupName, string cloudServiceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(roleName, resourceGroupName, cloudServiceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }