Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / July 2003

Tip: Looking for answers? Try searching our database.

Implementing Interception in .NET?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Benjamin Lin - 31 Jul 2003 15:49 GMT
Hi all,

What is the best way to implement interception in .NET in the middle-tier?

I am looking for a mechanism to implement call interception to wrap
functionalities around code written by other developers. Two approaches I am
aware of are:

1. CBOs, ContextAttributes, etc.
This works quite nicely but based on some other postings, this is an
undocumented/deprecated feature that may disappear/change in the future?
Also the mechanism does not work when the classes are changed to inherit
from ServicedComponent.

2. Define a common base class with the functionalities implemented and
provide hooks that can be overridden by other developers to implement their
code.
This would work, but is quite intrusive because it requires all developers
to conform to the same method signiture (the abstract interface defined by
me), rather than allowing them to define the argument and return types that
suit their particular needs.

Are there better alternatives? The mechanism needs to be Remoting and COM+
friendly and ideally, be as transparent as possible.

Any suggestion is appreciated.

Ben.
Steffen Ramlow - 31 Jul 2003 20:28 GMT
> Hi all,
>
> What is the best way to implement interception in .NET in the
> middle-tier?

What do you want to achieve? More details!
Benjamin Lin - 31 Jul 2003 22:45 GMT
Hi Steffen,

Please let me re-phrase my issue.

My objective is to find a good scheme that support the separation of concern
between application developers and infrastructure developers in the middle
tier of an N-tier system. The application developers are focused on
implementing the business logic "modules", and the infrastructure developers
are focused on implementing technical oriented behaviours like logging,
global exception handling, etc. and wrap these behaviours around the modules
developed by the application developers.

The scheme needs to support the hosting of these "modules" in COM+ and/or as
remotable objects, and ideally should not place a restriction on the
signature of the methods that application developers are able implement to
provide functionalities to the presentation tier.

Thanks,
Ben.

> > Hi all,
> >
> > What is the best way to implement interception in .NET in the
> > middle-tier?
>
> What do you want to achieve? More details!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.