I have the need to ping a server to maintain state. I don't need the object to come back to me. Is there a way to write a one-way fire and forget command object?
Thanks
I do not think so either. WCF does have a support for this
sort of behavior, but it is not implemented in CSLA because it always needs a
return value from every call.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Magenic ®
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: ajj3085
[mailto:cslanet@lhotka.net]
Sent: Wednesday, August 27, 2008 9:16 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] One-way clsa object
I don't think so... but if you just have a command object
with no member fields, I can't image the return trip will take very long.
Since CLSA must return the object, why not make just very simple command that returns the server "status" (e.g. a single numeric field). It's not going to be that many bytes anyway. If your concern is having the client wait for the reply, then we can look at executing the command on another thread that exits as soon as the command returns.
Copyright (c) Marimer LLC