Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lock during async event?
#4
(03-27-2018, 12:30 AM)cpstevenc Wrote:
(03-26-2018, 10:05 PM)Alexandre Machado Wrote: LockAsyncEvents is available for all async events of some specific IW component. You can enable or disable on a per-event basis. Isn't it exactly what you want?

That is what I ended up using and just changing up some of my code to use the Exit event to do my major work and set the LockAsyncEvents to do this onExit.

I just thought there would be another way to trigger this off and on right in the middle of the code but for now this works I think.
I learn from these kinds of questions, so pardon my butting in but I don't think it can be done in the real world.  When I try to explain it myself I get a more solid picture myself (or I get corrected!).

Remember that the lock occurs on the client.  Your code is executing on the server.  When the client sends an async request the client has no way of knowing what went on in your code until the request returns. 

So, even if you change it off and on inside your code, the client doesn't know anything about it until the response returns.

Someone can correct me if I'm wrong.

Dan
Reply


Messages In This Thread
Lock during async event? - by cpstevenc - 03-25-2018, 03:18 AM
RE: Lock during async event? - by cpstevenc - 03-27-2018, 12:30 AM
RE: Lock during async event? - by DanBarclay - 03-28-2018, 03:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)