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?
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.
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation
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