Esempio n. 1
0
 /// <summary>
 /// Gets the details of the user specified by its identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='userId'>
 /// User identifier. Must be unique in the current API Management service
 /// instance.
 /// </param>
 public static UserContract Get(this IUserOperations operations, string resourceGroupName, string serviceName, string userId)
 {
     return(operations.GetAsync(resourceGroupName, serviceName, userId).GetAwaiter().GetResult());
 }
Esempio n. 2
0
 /// <summary>
 /// Gets user information from the directory.  (see
 /// http://msdn.microsoft.com/en-us/library/azure/dn151678.aspx for
 /// more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Graph.RBAC.IUserOperations.
 /// </param>
 /// <param name='upnOrObjectId'>
 /// Required. User object Id or user principal name to get user
 /// information.
 /// </param>
 /// <returns>
 /// Server response for Get user information API call
 /// </returns>
 public static Task <UserGetResult> GetAsync(this IUserOperations operations, string upnOrObjectId)
 {
     return(operations.GetAsync(upnOrObjectId, CancellationToken.None));
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 public static User Get(this IUserOperations operations, string id)
 {
     return(operations.GetAsync(id).GetAwaiter().GetResult());
 }