.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 24th, 2005, 06:18 PM
Frefaln Frefaln is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: Harrisburg, PA
Posts: 1 Frefaln User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 29 sec
Reputation Power: 0
Send a message via Yahoo to Frefaln
Remoting/service types & friend classes

Hello all. This is my first post and I'm afraid it's a doozie. Bear with me.

I'm writing an ASP.NET web app that needs to access a Service object via Remoting. I must use a service for the ability to run under a different username, since the ASPNET user and impersonation are forbidden.

The service object I'm accessing, BaseObject, contains six classes based on functionality -- BatchProcessing.vb, Reports.vb, etc. Initially when I set up the service's OnStart() event, I registered each class as its own Remoting service type. This seemed risky, having multiple types of objects hosted as their own Remoting service on the same TCP port. It also seemed cumbersome, having to track all the different service names.

So instead I added a wrapper class (for lack of a better phrase) to BaseObject and called it BaseEntry. BaseEntry exposes all the methods needed by the web app and works as a pass-through to the six friend classes. The problem with this approach is, any changes to method signatures now have to be made in two places: the original class and then BaseEntry.

I guess what I'm wondering is if my second approach is the only (or most graceful) way of having a single Remoting service object while still having access to that object's friend classes.

I appreciate any input/suggestions.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Remoting/service types & friend classes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway