473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

unique inheritance !!

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.
Jul 19 '05 #1
1 1367
"Use StrongNameIdentityPermission to achieve versioning and naming
protection by confirming that the calling code is in a particular
strong-named code assembly."

-mike
MVP

"james" <ja*******@yahoo.com> wrote in message
news:35**************************@posting.google.c om...
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.

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
2
by: Graham Banks | last post by:
Does using multiple inheritance introduce any more performance overhead than single inheritance?
4
by: JKop | last post by:
I'm starting to think that whenever you derive one class from another, that you should use virtual inheritance *all* the time, unless you have an explicit reason not to. I'm even thinking that...
5
by: Morgan Cheng | last post by:
It seems no pattern defined by GoF takes advantage of multiple inheritance. I am wondering if there is a situation where multiple inheritance is a necessary solution. When coding in C++, should...
3
by: Prince Kumar | last post by:
Is there any way I can define an Unique constraint or unique index which allows more than one null values for the same column combination in DB2? ie, If my index is defined on (col3, col4) where...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
18
by: Jordan | last post by:
In OOP literature we read frequently about "interface" - a term which is apparently used to mean different things depending on context and possibly language. ..NET however provides for the...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
6
by: pastorom | last post by:
Hey, I'm a little new to c++ programming. I've created a class that inherits from two other classes class C: virtual public A, public B { ... }
6
by: Bart Simpson | last post by:
I remember reading on parashift recently, that "Composition is for code reuse, inheritance is for flexibility" see (http://www.parashift.com/c++-faq-lite/smalltalk.html#faq-30.4) This confused...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.