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 / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Capture Remoting Event?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lucius - 28 Jun 2007 20:25 GMT
I have a Remoting server (via Http channel) with many objects that are
CAO.

I would like to hook some kind of overall "Remoting primary" event so
I can log every time anything is done with the server. I do not want
to change the implementation of the objects, I just want something
that acts a little bit like a web server HTTP log.

Thanks.
Walter Wang [MSFT] - 29 Jun 2007 10:11 GMT
Hi lucius,

I think you can use ITrackingHandler to do this. Here's an example on this:

#15 Seconds : Tracking Services in .NET Remoting and Implementing Your Own
Tracking Handlers
http://www.15seconds.com/issue/030225.htm

Please reply here to let me know if this helps or not.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
lucius - 30 Jun 2007 05:09 GMT
According to that link, ITrackingHandler is only supported in CAOs. I
have server-side Single Call Objects. Maybe I need to use a
server-side channel sink? If so, please show a sample.

Thanks.

>Hi lucius,
>
[quoted text clipped - 16 lines]
>
>This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 02 Jul 2007 14:14 GMT
Hi lucius,

This is a quick note to let you know that I am performing research on this
issue and will get back to you as soon as possible. I appreciate your
patience.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Steven Cheng[MSFT] - 05 Jul 2007 08:23 GMT
Hi lucius,

I think your idea about using a custom channel sink is reasonable. In .NET
remoting, if you want to add a common injection point which can hook the
client-server message communications and do some customization or
monitoring task(logging), custom channel sink is the expected approach.  
Just like the SoapExtension in ASP.NET webservice, you can inject and chain
multiple custom sinks into the client or server's channel sink chain.

#Sinks and Sink Chains  
http://msdn2.microsoft.com/en-us/library/tdzwhfy3.aspx

Here are some examples which have used custom sinks for customization
purpose:

#.NET Remoting Customization Made Easy: Custom Sinks
http://www.codeproject.com/csharp/customsinks.asp

#Secure Your .NET Remoting Traffic by Writing an Asymmetric Encryption
Channel Sink
http://msdn.microsoft.com/msdnmag/issues/03/06/NETRemoting/

Hope this helps also.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

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.