private void btnShutdown_Click(object sender, EventArgs e) { Demo.HelloPrx hello = createProxy(); lblStatus.Text = "Shutting down server"; SayHelloCB cb = new SayHelloCB(this); hello.begin_shutdown().whenCompleted(cb.response, cb.exception).whenSent(cb.sent); }
private void btnHello_Click(object sender, EventArgs e) { Demo.HelloPrx hello = createProxy(); lblStatus.Text = "Sending request"; SayHelloCB cb = new SayHelloCB(this); hello.begin_sayHello(0).whenCompleted(cb.response, cb.exception).whenSent(cb.sent); }
private void sayHello_Click(object sender, RoutedEventArgs e) { Demo.HelloPrx hello = createProxy(); if (hello == null) { return; } int delay = (int)delaySlider.Value; try { if (!deliveryModeIsBatch()) { status.Content = "Sending request"; SayHelloCB cb = new SayHelloCB(this); hello.begin_sayHello(delay).whenCompleted(cb.response, cb.exception).whenSent(cb.sent); } else { flush.IsEnabled = true; hello.sayHello(delay); status.Content = "Queued sayHello request"; } } catch (Ice.LocalException ex) { handleException(ex); } }
private void sayHello_Click(object sender, RoutedEventArgs e) { Demo.HelloPrx hello = createProxy(); if(hello == null) { return; } int delay =(int)delaySlider.Value; try { if(!deliveryModeIsBatch()) { status.Content = "Sending request"; SayHelloCB cb = new SayHelloCB(this); hello.begin_sayHello(delay).whenCompleted(cb.response, cb.exception).whenSent(cb.sent); } else { flush.IsEnabled = true; hello.sayHello(delay); status.Content = "Queued sayHello request"; } } catch(Ice.LocalException ex) { handleException(ex); } }