Remoting question....

J

Joe Coder

OK, so I'm new to .Net remoting and I have a couple of questions.

What is the context of the object being hosted? Like, if my object is
coded to run a Win32 API and get system metrics and report them back
through a simple function call. To keep it simple, let's say we are
getting the max screen resolution. And, we code a simple function to do
that. And we place this as the sole function in our object that we will
make available to remote clients.

When a remote client attaches to our object and calls the function will the
max screen resolution returned be for the client's screen or the host's
screen?

I guess I am asking what context the object will run in if marshalled by
reference and what context if marshalled by value.

Thanks for your help!
 
K

Klaus H. Probst

The code executes in the context of the machine that functions as a server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top