How to set GenericPrincipal of threads created automatically C#

515 Views Asked by At

I have the code in application like

var principal = new GenericPrincipal(currentIdentity, roles);
        Thread.CurrentPrincipal = principal;

but problem is when my application runs some threads are created automatically but there principle is not same as above one. How to set that?

0

There are 0 best solutions below