diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-12-08 14:10:38 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-12-08 14:10:38 -0800 |
commit | 55527152af356fda6037f836c978c2b3a2e2f045 (patch) | |
tree | d1872fe6e2d01fa15455a462df090ef94799cb5b /cs/demo/Ice/wpf/HelloWindow.xaml.cs | |
parent | vsplugin fxcop issues (diff) | |
download | ice-55527152af356fda6037f836c978c2b3a2e2f045.tar.bz2 ice-55527152af356fda6037f836c978c2b3a2e2f045.tar.xz ice-55527152af356fda6037f836c978c2b3a2e2f045.zip |
- bug 3533: add async version of Connection/Communicator
flushBatchRequests operation
- Slice file cleanup in C# tests
- Updating C++ dependencies
Diffstat (limited to 'cs/demo/Ice/wpf/HelloWindow.xaml.cs')
-rw-r--r-- | cs/demo/Ice/wpf/HelloWindow.xaml.cs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/cs/demo/Ice/wpf/HelloWindow.xaml.cs b/cs/demo/Ice/wpf/HelloWindow.xaml.cs index 8cdf150a153..7d71975ab28 100644 --- a/cs/demo/Ice/wpf/HelloWindow.xaml.cs +++ b/cs/demo/Ice/wpf/HelloWindow.xaml.cs @@ -245,17 +245,9 @@ namespace Ice.wpf.client private void flush_Click(object sender, RoutedEventArgs e)
{
- new System.Threading.Thread(new System.Threading.ThreadStart(delegate()
- {
- try
- {
- _communicator.flushBatchRequests();
- }
- catch(Ice.LocalException ex)
- {
- handleException(ex);
- }
- })).Start();
+ Ice.AsyncResult r = _communicator.begin_flushBatchRequests();
+ r.whenCompleted(handleException);
+
flush.IsEnabled = false;
status.Content = "Flushed batch requests";
}
|