/// <summary> /// Gets the username and user ID for each user managed by the specified customer ID. /// </summary> /// <param name="customerId"></param> /// <returns></returns> private async Task <IList <UserInfo> > GetUsersInfoAsync(long customerId) { var request = new GetUsersInfoRequest { CustomerId = customerId }; return((await Service.CallAsync((s, r) => s.GetUsersInfoAsync(r), request)).UsersInfo); }
public async Task <GetUsersInfoResponse> GetUsersInfoAsync( long customerId, UserLifeCycleStatus?statusFilter) { var request = new GetUsersInfoRequest { CustomerId = customerId, StatusFilter = statusFilter }; return(await CustomerManagementService.CallAsync((s, r) => s.GetUsersInfoAsync(r), request)); }
public async Task <GetUsersInfoResponse> GetUsersInfoAsync(ApiAuthentication auth, long customerId, UserLifeCycleStatus?statusFilter) { var request = new GetUsersInfoRequest { CustomerId = customerId, StatusFilter = statusFilter }; try { SetAuthHelper.SetAuth(auth, request); return(await Check().GetUsersInfoAsync(request)); } catch (Exception ex) { Log(new LogEventArgs(ServiceType.CustomerManagement, "GetUsersInfoAsync", ex.Message, new { Request = request }, ex)); } return(null); }