예제 #1
0
 /// <summary>
 /// Gets a logical network with specified server id and logical network name.
 /// </summary>
 /// <remarks>
 /// Gets the details of a logical network.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Server Id.
 /// </param>
 /// <param name='logicalNetworkName'>
 /// Logical network name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LogicalNetwork> GetAsync(this IReplicationLogicalNetworksOperations operations, string fabricName, string logicalNetworkName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(fabricName, logicalNetworkName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <summary>
 /// Gets a logical network with specified server id and logical network name.
 /// </summary>
 /// <remarks>
 /// Gets the details of a logical network.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Server Id.
 /// </param>
 /// <param name='logicalNetworkName'>
 /// Logical network name.
 /// </param>
 public static LogicalNetwork Get(this IReplicationLogicalNetworksOperations operations, string fabricName, string logicalNetworkName)
 {
     return(operations.GetAsync(fabricName, logicalNetworkName).GetAwaiter().GetResult());
 }
예제 #3
0
 /// <summary>
 /// Gets the list of logical networks under a fabric.
 /// </summary>
 /// <remarks>
 /// Lists all the logical networks of the Azure Site Recovery fabric.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Server Id.
 /// </param>
 public static IPage <LogicalNetwork> ListByReplicationFabrics(this IReplicationLogicalNetworksOperations operations, string fabricName)
 {
     return(operations.ListByReplicationFabricsAsync(fabricName).GetAwaiter().GetResult());
 }
예제 #4
0
 /// <summary>
 /// Gets the list of logical networks under a fabric.
 /// </summary>
 /// <remarks>
 /// Lists all the logical networks of the Azure Site Recovery fabric.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <LogicalNetwork> > ListByReplicationFabricsNextAsync(this IReplicationLogicalNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByReplicationFabricsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #5
0
 /// <summary>
 /// Gets the list of logical networks under a fabric.
 /// </summary>
 /// <remarks>
 /// Lists all the logical networks of the Azure Site Recovery fabric.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <LogicalNetwork> ListByReplicationFabricsNext(this IReplicationLogicalNetworksOperations operations, string nextPageLink)
 {
     return(operations.ListByReplicationFabricsNextAsync(nextPageLink).GetAwaiter().GetResult());
 }