Class library assembly permissions, best practice
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I wish to incorporate some assembly security attributes to my class library. So I add something like this to my class library namespace: [assembly:System.Net.SocketPermission(SecurityAction.RequestMinimum)] namespace olapWeb_Controls { So on and so forth. Yet I have many classes in my class library - all of them reference the namespace. Apparently I can add permission by simple adding the directives to just one of the classes - but I would rather I added them one central place, rather than in just one class (which might get changed by someone else than me). Adding the same permissions to every single class seems like overkill. What should my best practice be? Many thanks, Morten, Denmark