Sure, you can. Asynchronous data portal can be used anywhere
now, in WPF, WInForm or WebForms. The question really is do you have a
scenario where you have an advantage of doing so? Typically, your forms
would load faster, but the user cannot use them until the data is fully loaded.
You can Save calls asynchronously as well, but you need to have a real good
strategy of handling errors from those calls, because the user can close the
form before save is actually completed, and then you have a problem…
Where they are extremely useful is in enabling you to provide animation for
long running fetch or save operations because your UI thread is free to do
whatever since portal calls are executing on background thread.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: vdhant
[mailto:cslanet@lhotka.net]
Sent: Wednesday, October 29, 2008 11:54 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Asynchronous operations outside of Silverlight
I am assuming the answer is yes, but I just wanted to
confirm.
Is there anything stopping you from making asynchronous calls through the data
portal outside of silverlight. For instance, if I have a normal WPF application
and want to make an asynchronous request on a Business Object, can i use the
asynchronous operations plumbing? If so, is this advisable or am I best to
handle the asynchronous operations manually.
As i said i think the answer is yes, but i just wanted to check.
Cheers
Anthony
Copyright (c) Marimer LLC