コード例 #1
0
 public static async Task <ODataValueOfIEnumerableOfUserDto> GetUsersForUnitByKeyAsync(this IOrganizationUnits operations, long key, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetUsersForUnitByKeyWithHttpMessagesAsync(key, expand, filter, select, orderby, top, skip, count, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Returns a collection of all non robot users and, if no other sorting is
 /// provided, will place first those associated to an unit. Allows odata query
 /// options.
 /// </summary>
 /// <remarks>
 /// Required permissions: Units.View and Users.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// The Id of the unit for which the associated users are placed first.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataResponseListUserDto> GetUsersForUnitByKeyAsync(this IOrganizationUnits operations, long key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetUsersForUnitByKeyWithHttpMessagesAsync(key, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }