all groups > dotnet remoting > april 2006 >
You're in the

dotnet remoting

group:

Remoting Question


Remoting Question Demetri
4/24/2006 5:01:02 PM
dotnet remoting:
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?

--
Re: Remoting Question Jon Shemitz
4/24/2006 6:57:56 PM
[quoted text, click to view]

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

--

<http://www.midnightbeach.com> Contracting, consulting, training
..NET 2.0 for Delphi Programmers <http://www.midnightbeach.com/.net>
Re: Remoting Question Markus
4/25/2006 12:00:00 AM
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
AddThis Social Bookmark Button