Example #1
0
 private void RaiseSpecific2Button_Click(object sender, RoutedEventArgs e)
 {
     var d = new DummyServer();
     var ed2 = new ExecuteDelegate2(d.Execute);
     Write("Raising specific exception with 2 parameters...");
     ed2.BeginInvoke(314, 271, AsyncHelper.DispatchExceptions(ResultReady2), ed2);
 }
Example #2
0
        private void RaiseGeneral2Button_Click(object sender, RoutedEventArgs e)
        {
            var d   = new DummyServer();
            var ed2 = new ExecuteDelegate2(d.Execute);

            Write("Raising general exception with 2 parameters...");
            ed2.BeginInvoke(271, 314, AsyncHelper.DispatchExceptions(ResultReady2), ed2);
        }
Example #3
0
        private static void ExecuteAsync()
        {
            var d = new DummyServer();
            var ed = new ExecuteDelegate(d.Execute);
            ed.BeginInvoke(11, ResultReady, ed);

            var ed2 = new ExecuteDelegate2(d.Execute);
            ed2.BeginInvoke(11, 22, ResultReady2, ed2);
        }
Example #4
0
        private static void ExecuteAsync()
        {
            var d  = new DummyServer();
            var ed = new ExecuteDelegate(d.Execute);

            ed.BeginInvoke(11, ResultReady, ed);

            var ed2 = new ExecuteDelegate2(d.Execute);

            ed2.BeginInvoke(11, 22, ResultReady2, ed2);
        }