/// <summary>
 /// Gets a Service Fabric application resource.
 /// </summary>
 /// <remarks>
 /// Get a Service Fabric application resource created or in the process of
 /// being created in the Service Fabric cluster resource.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster resource.
 /// </param>
 /// <param name='applicationName'>
 /// The name of the application resource.
 /// </param>
 public static ApplicationResource Get(this IApplicationsOperations operations, string resourceGroupName, string clusterName, string applicationName)
 {
     return(operations.GetAsync(resourceGroupName, clusterName, applicationName).GetAwaiter().GetResult());
 }
Ejemplo n.º 2
0
 public ActiveDirectoryApplicationImpl GetById(string id)
 {
     return((ActiveDirectoryApplicationImpl)Extensions.Synchronize(() => ((ActiveDirectoryApplicationImpl)WrapModel(Extensions.Synchronize(() => innerCollection.GetAsync(id)))).RefreshCredentialsAsync()));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Get an application by object ID.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='applicationObjectId'>
 /// Application object ID.
 /// </param>
 public static Application Get(this IApplicationsOperations operations, string applicationObjectId)
 {
     return(operations.GetAsync(applicationObjectId).GetAwaiter().GetResult());
 }