One-way clsa object

One-way clsa object

Old forum URL: forums.lhotka.net/forums/t/5308.aspx


ssuing8825 posted on Wednesday, August 27, 2008

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

ajj3085 replied on Wednesday, August 27, 2008

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.

sergeyb replied on Wednesday, August 27, 2008

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.


rsbaker0 replied on Wednesday, August 27, 2008

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.

 

ssuing8825 replied on Wednesday, August 27, 2008

Thanks everyone.

Copyright (c) Marimer LLC