public static async Task <IUser[]> ExecuteAllAsync(this IUserCollection collection) { var pagedCollection = await collection.ExecuteAsync(); return(await ExecuteAllAsync(pagedCollection)); }
public static IPagedCollection <IUser> Execute(this IUserCollection users) { return(AsyncHelper.RunSync(async() => await users.ExecuteAsync())); }