I'm working inside of ConfigureServices of my Startup class. I want to run IsInRole() which I understand to be this method in order to populate an Action:
However, running:
System.Security.Principal.IPrincipal.IsInRole("BRV_Projects_Edit");
Is clearly not successful as this refers to an interface, not an instance implementing that interface?
My Question is, within the context of ConfigureService, where I am defining a custom attribute how can I access (inject?) the Principal of the current user.