unique inheritance !!

J

james

I am working on .NET application. I have created a DPAPI library to
decrypt the strings, which is running as an independant serviced
component.
Now i have another generalised component which call the above library
and use the decryption method to get the actual connection string.
This component will further return a connection back to application
whenever included in an application.

The above architecture works fine. Now i would like to protect my
DPAPI serviced class from external call other than my generalised
component.

Pls help me to find a solution to protect my serviced component so
that DPAPI serviced component can be inherited only by my generalised
class.

NOte: i have written seperatly the generalised component because
serviced component run in a different application domain which will
not allow me to pass the database connection back to application as
byref. i have to use remoting which i want to avoid.
 
M

Michael Giagnocavo [MVP]

"Use StrongNameIdentityPermission to achieve versioning and naming
protection by confirming that the calling code is in a particular
strong-named code assembly."

-mike
MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top