all groups > dotnet remoting > august 2003 >
You're in the

dotnet remoting

group:

Hosting remoting server in WinForms app


Hosting remoting server in WinForms app Robert Koval
8/11/2003 10:28:49 AM
dotnet remoting:
Hi I am looking for an example how to use a remoting server inside WinForms
app. My scenario is simple: When app starts it listens to incoming messages
and modifies GUI based on that.

Any help is appreciated.
Thanx
Robert

Hosting remoting server in WinForms app szabelin
8/13/2003 6:24:31 PM
"Advanced .NET Remoting" by Ingo Rammer is a really good
book on the topic. In one of its first chapters he creates
a server inside a console (CUI) application. So I would
imagine it's possible to do the same thing inside GUI app.
It's actually just 2 lines of code in that example that
server needs to do to register itself: RegisterChannel,
and RegisterWellKnownServiceType. Most examples on
internet create .NET servers in "windows services" apps,
so you should be able to just copy and paste sample code
into your GUI app.



[quoted text, click to view]
AddThis Social Bookmark Button