S
Sam.Net
hello all,
I am creating the security framework for one project. There is one security
check I want to perform.
That only the users with perticular role will be able to create object of
perticular class. Structure I am thinking of is as follows
[Permission("Admin")]
public class ABC
{
------
-------
}
Now I want to check this attribute some where in security manager. How do I
notify new object creation of ABC to Security manager I dont want keep
security related code in ABC. So that the entites will be unaware of any
security checks. And I want it to be declearative. Also I dont want to use
Unmanaged code to put this check and also the framework does not use code
access security
Thanks in advance
I am creating the security framework for one project. There is one security
check I want to perform.
That only the users with perticular role will be able to create object of
perticular class. Structure I am thinking of is as follows
[Permission("Admin")]
public class ABC
{
------
-------
}
Now I want to check this attribute some where in security manager. How do I
notify new object creation of ABC to Security manager I dont want keep
security related code in ABC. So that the entites will be unaware of any
security checks. And I want it to be declearative. Also I dont want to use
Unmanaged code to put this check and also the framework does not use code
access security
Thanks in advance