public async Task <Microsoft.Azure.Management.Graph.RBAC.Fluent.IServicePrincipal> GetByIdAsync(string id, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await((ServicePrincipalImpl)WrapModel(await innerCollection.GetAsync(id, cancellationToken))).RefreshCredentialsAsync(cancellationToken));
 }
Пример #2
0
 /// <summary>
 /// Gets service principal information from the directory.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='objectId'>
 /// The object ID of the service principal to get.
 /// </param>
 public static ServicePrincipal Get(this IServicePrincipalsOperations operations, string objectId)
 {
     return(operations.GetAsync(objectId).GetAwaiter().GetResult());
 }