/// <summary> /// Get the list of directory objects that are owned by the user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DirectoryObject> > ListOwnedObjectsAsync(this ISignedInUserOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListOwnedObjectsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the details for the currently logged-in user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <UserInner> GetAsync(this ISignedInUserOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get the list of directory objects that are owned by the user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <DirectoryObject> ListOwnedObjects(this ISignedInUserOperations operations) { return(operations.ListOwnedObjectsAsync().GetAwaiter().GetResult()); }
/// <summary> /// Get the list of directory objects that are owned by the user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextLink'> /// Next link for the list operation. /// </param> public static IPage <DirectoryObject> ListOwnedObjectsNext(this ISignedInUserOperations operations, string nextLink) { return(operations.ListOwnedObjectsNextAsync(nextLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets the details for the currently logged-in user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static User Get(this ISignedInUserOperations operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }