public override IList <string> GetIdentities() { List <string> list = new List <string>(); System.Web.Security.RoleProvider roleProvider = this.GetRoleProvider(); list.AddRange(roleProvider.GetUsersInRole(this.Name)); return(list); }
public override IList <string> GetIdentities() { List <string> identities = new List <string>(); System.Web.Security.RoleProvider rp = GetRoleProvider(); identities.AddRange(rp.GetUsersInRole(Name)); return(identities); }
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 string[] GetUsersInRole(string applicationName, string roleName) { _Provider.ApplicationName = _ApplicationName; return(_Provider.GetUsersInRole(roleName)); }