Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        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);
            }
        }