Foe Windows Forms applications, do we need to implement async factory methods?

Foe Windows Forms applications, do we need to implement async factory methods?

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


fredg posted on Tuesday, November 15, 2011

We're developing desktop applications using winForms, do we need to implement async factory methods?

RockfordLhotka replied on Tuesday, November 15, 2011

You don't need to implement them if you aren't going to use them.

However, you might consider using them.

One of the primary requests by users and developers, going all the way back to the early days of VB (so 1993 or so) has been for the entire app to not lock up every time it talks to the database or server.

The way you avoid having the entire app lock up is to use async calls to the application server. That's what the async data portal does.

The upside is that the app doesn't lock up all the time. The down side is that you (the developer) need to more carefully restrict what the user can and can't do while the async operation is running. You don't want the user clicking the Save button repeatedly and queuing up multiple redundant saves...

Copyright (c) Marimer LLC