コード例 #1
0
 /// <summary>
 /// Get the details of an Azure Site recovery event.
 /// </summary>
 /// <remarks>
 /// The operation to get the details of an Azure Site recovery event.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='eventName'>
 /// The name of the Azure Site Recovery event.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EventModel> GetAsync(this IReplicationEventsOperations operations, string eventName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(eventName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }