[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Re: Hosting a Multi Class DLL

Lin JinCong

6/14/2004 1:54:00 AM

Hi, Sunny
how to expose every class, can you paste the sample in here? Thanks.


"Sunny" <sunnyask@icebergwireless.com> дÈëÓʼþ
news:uMhCY7sMEHA.1272@tk2msftngp13.phx.gbl...
> Hi,
> you have to expose every class, which you want to be accesible. You can
> do it either with the config file, or programmatically using
> RemotingServices and related classes/namespaces.
>
> Sunny
>
> In article <a80a59b5.0405051002.6b179fd3@posting.google.com>,
> dave.roe@elantis.biz says...
> > I have managed to finaly get remoting communicating between my client
> > and server. The problem that I now having is that my dll on the server
> > contains multiple classes. In the config files do I need to host each
> > class separately, or should I be hosting just the dll ?
> >
> > eg elantis_BUS is the dll, and BusCountry and BusProvince are classes
> > within that dll....
> >
> > <system.runtime.remoting>
> > <application>
> > <service>
> > <wellknown mode="SingleCall"
> > type="elantis_BUS.BusCountry, elantis_BUS"
> > objectUri="BusCountry"/>
> > <wellknown mode="SingleCall"
> > type="elantis_BUS.BusProvince, elantis_BUS"
> > objectUri="BusProvince"/>
> > </service>
> > <channels>
> > <channel ref="tcp" port="8001" />
> > </channels>
> > </application>
> > </system.runtime.remoting>
> >