title: Access ASP.Net rolesprovider from external assembly
body: <p>I have a RolesProvider properly registered and functioning. When the ASPX-page is executed I do some of the work in external assemblies (.dll-files referenced in, plain vanilla).</p>
  
  <p><strong>I need to access methods on this role provider from the external assembly. How can I do that?</strong></p>
  
  <p>Note: I don't want to pass a reference from ASPX to the external class if possible. Something like "HttpContext.Current.Roles" would be great.</p>
  
  <p>Bonus: Shed some light on when and how is the custom ASP.Net RoleProvider used.</p>