OK, I've created my custom role provider and added it to the web.config. Here's part of my code for the role provider:
public class MyCustomRoleProvider : RoleProvider
{
public override bool IsUserInRole(string username, string roleName)
{
return true;
}
public string MyCustomFunction()
{
return "its my custom string";
}
}
When I need to use the role provider in my application, I'll call it like this:
var truth = Roles.IsUserInRole("myUsername", "myFakeRole");
OK, Great!, it calls my custom code (I can tell from debugging) and returns true every time. Why can I not make the following call on my custom role provider?
var no_compile = Roles.MyCustomFunction();
how can I make all public members of my custom role provider accessible?