public RoleGetUsersReply RoleGetUsers(RoleGetUsersRequest request) { try { RoleGetUsersReply response = new RoleGetUsersReply(); response.Usernames = _roles.GetUsersInRole(request.RoleName); response.Status = ActionStatus.OK; return(response); } catch (Exception ex) { throw ex.NewFault(); } }
public override string[] GetUsersInRole(string roleName) { //using (_log.NewTrace()) { try { WcfClientUtils.VerifyParameter("roleName", roleName); RoleGetUsersRequest request = new RoleGetUsersRequest(); request.ServiceSessionToken = _authenticationKey; request.RoleName = roleName; var response = _appService.RoleGetUsers(request); return response.Usernames; } catch (Exception ex) { throw WcfUtils.Extract(ex); } } }