summaryrefslogtreecommitdiff
path: root/cs/demo/Ice/wpf/HelloWindow.xaml.cs
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2015-03-10 12:12:10 +0100
committerBenoit Foucher <benoit@zeroc.com>2015-03-10 12:12:10 +0100
commitc6ca68d97aa5bbc2a172e3e35171b5452657fa22 (patch)
tree46edcca4c8e313285a205bf6fad7c56c452c0cc0 /cs/demo/Ice/wpf/HelloWindow.xaml.cs
parentMinor JS style fixes (diff)
downloadice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.tar.bz2
ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.tar.xz
ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.zip
ICE-6170 - fixed behavior of batch requests
Diffstat (limited to 'cs/demo/Ice/wpf/HelloWindow.xaml.cs')
-rw-r--r--cs/demo/Ice/wpf/HelloWindow.xaml.cs18
1 files changed, 16 insertions, 2 deletions
diff --git a/cs/demo/Ice/wpf/HelloWindow.xaml.cs b/cs/demo/Ice/wpf/HelloWindow.xaml.cs
index 4f57f7f49dc..7b7b263061b 100644
--- a/cs/demo/Ice/wpf/HelloWindow.xaml.cs
+++ b/cs/demo/Ice/wpf/HelloWindow.xaml.cs
@@ -222,8 +222,11 @@ namespace Ice.wpf.client
private void flush_Click(object sender, RoutedEventArgs e)
{
- Ice.AsyncResult r = _communicator.begin_flushBatchRequests();
- r.whenCompleted(handleException);
+ if(_helloPrx == null)
+ {
+ return;
+ }
+ _helloPrx.begin_ice_flushBatchRequests().whenCompleted(handleException);
flush.IsEnabled = false;
status.Content = "Flushed batch requests";
@@ -247,6 +250,13 @@ namespace Ice.wpf.client
{
prx = prx.ice_invocationTimeout(timeout);
}
+
+ //
+ // The batch requests associated to the proxy are lost when we
+ // update the proxy.
+ //
+ flush.IsEnabled = false;
+
_helloPrx = Demo.HelloPrxHelper.uncheckedCast(prx);
}
@@ -272,6 +282,10 @@ namespace Ice.wpf.client
private void modeSelectionChanged(object sender, SelectionChangedEventArgs e)
{
+ if (flush != null)
+ {
+ flush.IsEnabled = false;
+ }
_helloPrx = null;
}