Authorizer Apply To All

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 09-Oct-2008 16:49:57   

How would I best accomplish this psudeo code:

MyUser u = new MyUser(); MyAuthorizer a = new MyAuthorizer(u); //creates my authorizer with the user info ApplyToAllEntities() // Hard Part ?????

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 09-Oct-2008 20:04:53   

Maybe you need to use Dependency Injection scopes.

And for each user call the scope associated with him/her.