public RoleFindUsersReply FindUsersInRole(RoleFindUsersRequest request) { try { RoleFindUsersReply response = new RoleFindUsersReply(); if (string.IsNullOrEmpty(request.UsernamePattern) == false) { request.UsernamePattern = request.UsernamePattern.Replace("?", "_").Replace("*", "%"); } response.Usernames = _roles.FindUsersInRole(request.RoleName, request.UsernamePattern); response.Status = ActionStatus.OK; return(response); } catch (Exception ex) { throw ex.NewFault(); } }
public string[] FindUsersInRole(string applicationName, string roleName, string usernameToMatch) { _Provider.ApplicationName = _ApplicationName; return(_Provider.FindUsersInRole(roleName, usernameToMatch)); }