September 2004
Intermediate to advanced
408 pages
7h 25m
English
If you're writing a ServicedComponent and you want to secure it, there are several attributes in System.EnterpriseServices that you need to use. Let me walk you through a concrete example. Figure 56.1 shows a simple component that implements role-based security.
First of all, notice that the assembly has been given a public key: All managed COM+ components must be strongly named. Next, notice that I've given my application a name via ApplicationNameAttribute. I've also chosen a server app (as opposed to a library app) via ApplicationActivationAttribute. This will ensure that my application gets its own process.
The next attribute, ApplicationAccessControlAttribute ...
Read now
Unlock full access