Remoting Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The only way I can ask the question I have is to present an example.

Lets say I have a server application (server.exe),that runs unattended of
course, and goes out every 20 minutes and gets stock information and holds
the info it finds.

I have a client app that provides a button that a user can click to go and
find out what the stock value is from the server application.

Forget about how the server application gets the data, it could use yahoo
stocks or whatever. The issue I have is how do I get information the server
app is holding already in memory to the client?

Any simple examples of this type of thing anywhere?
 
Demetri said:
Forget about how the server application gets the data, it could use yahoo
stocks or whatever. The issue I have is how do I get information the server
app is holding already in memory to the client?

Every client request is handled by a server side object. Each server
side object could read static members of its class.
 
Demetri,

As Jon said, that's what .NET Remoting basically does, clients call
functions on the server.

So e.g. the server has a method

public decimal GetStock(string symbol) {...}

then the client can just call this method on the server and gets the
Stock informations (you can pass any data, which is serializable,
through remoting).

hth
Markus
 

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

Back
Top