コード例 #1
0
 public async Task <IList <IUserInfo> > GetUsers(RequestUserParameter parameter)
 {
     return(await GetUsers(connectorProvider.GetUserByUser, parameter).ConfigureAwait(false));
 }
コード例 #2
0
        public async Task <IList <IUserInfo> > GetUsers(string apiUrl, RequestUserParameter parameter)
        {
            IUserInfo[] users = await httpProxy.PostAsync <UserInfo[]>(apiUrl, parameter).ConfigureAwait(false);

            return(new List <IUserInfo>(users ?? new UserInfo[0]));
        }