Canceling an async dataportal request

Canceling an async dataportal request

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


rfcdejong posted on Tuesday, July 14, 2009

Being on the client there can be some sort of loading panel or in csla terms an busyanimation while calling an factory method with an ASync callback.

Anyone with an idea on how to cancel an dataportal request?

rfcdejong replied on Friday, July 17, 2009

Noone with an idea?
The only idea's i have at the moment:

-> use a time out
Just let the handler go or ignore it when it the callback is made;

-> give direct an identity back to the caller
This way the caller (UI) can pass it when calling an second factory method or command like canceling or asking the progress information, but then the server must know what to do with it.

Any suggestions?

RockfordLhotka replied on Friday, July 17, 2009

All you can really do is ignore the callback.

There's nothing in the WCF proxy for cancelling a server call, so I don't think there's any way to actually do a meaningful cancel of the operation - all you can do is have the client app ignore whatever result you get back.

Copyright (c) Marimer LLC