Discussion:
Best design : wcf ?
(too old to reply)
Geoffrey
2008-05-26 09:50:40 UTC
Permalink
Hello,

I have a soft that run in service mode.
The service create 7 objects on start.
These 7 objects are the sames, except that, on creation, I pass a parameter
to specify a port to connect.
These object can connect to a serial port and receive datas. (it's more
complicated but enough to explian here).

Now, I want to have a remote monitoring, via tcp, I want to connect to
theses objects and display what he receive and send a command.

What I think is to open 7 listening tcp ports.
I'm looking for WCF, but ...
When I call my wcf object, how can I link to the previously created objects
?
How to handle static datas with my 7 "same" objects,
...

Thx
Alvin Bruney [ASP.NET MVP]
2008-05-28 02:37:41 UTC
Permalink
said objects should expose a method - whoAmI(), GetMyData(), SetMyData() so
that other objects can interact with said objects. That should have been
considered in your design decision long before you wrote any code btw.
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------
Post by Geoffrey
Hello,
I have a soft that run in service mode.
The service create 7 objects on start.
These 7 objects are the sames, except that, on creation, I pass a
parameter to specify a port to connect.
These object can connect to a serial port and receive datas. (it's more
complicated but enough to explian here).
Now, I want to have a remote monitoring, via tcp, I want to connect to
theses objects and display what he receive and send a command.
What I think is to open 7 listening tcp ports.
I'm looking for WCF, but ...
When I call my wcf object, how can I link to the previously created
objects ?
How to handle static datas with my 7 "same" objects,
...
Thx
Loading...