Allen Anderson
7/7/2004 6:37:00 PM
I know what your asking. Like I said, no, you can''t eliminate the
need to have interfaces, proxies, or implementation assemblies, or
something on the client side. There has to be either a proxy or
something to access the object through.
>Thanks, but I understand that the object isn''t "sent" over to the client
>upon instatiation. What I''m trying to accomplish is to elminate the need to
>have to put either the implementation assembly or use interfaces, proxy,
>etc.
>
>Let me try to clarify my idea:
>
>* Server has assembly A (our "heavy" assembly) whose codeBase is accessible
>from url "http://Server/A.dll"
>
>* Client app.config contains (in the runtime section):
>
> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
> <dependentAssembly>
> <assemblyIdentity name="A"
> publicKeyToken="6d23536ba2ebd1d7"
> />
> <codeBase version="1.0.0.0"
> href="http://Server/A.dll"/>
> </dependentAssembly>
> </assemblyBinding>
>
>so at runtime, when Client attempts to load assembly A it gets the codebase
>from Server.
>
>* Client app.config also has (in the remoting section):
>
> <application name="MyApp">
> <client>
> <wellknown
> type="MyApp,A"
> url="tcp://Server:8989/A.rem"
> displayName="A"
> />
> </client>
> </application>
>
>* I beleive in this scenario Client will gets it''s type information from
>Server''s codebase but the objects will be instatiated on the server.
>
>My question is: When Client references type A does it pull over the entire
>"heavy" object to get the type information (before it''s actually
>instantiated on Server) or is retreiving the type information from an
>assembly a light-weight operation?