示例#1
0
        private void StartupDialupDialog(AsyncTask task, object state)
        {
            task.DoFinalStep(
                delegate()
            {
                m_configuration = ApplicationConfiguration.GetDialupConfiguration();

                //Start Dialup dialog to get the number user wants to dial.
                DialupDialog dialupDialog = new DialupDialog(CustomerSession.CustomerServiceChannel.ServiceChannelCall, m_configuration);
                dialupDialog.Completed   += new EventHandler <DialogCompletedEventArgs>(this.DialupDialogCompleted);
                dialupDialog.Run();
            });
        }
示例#2
0
        private void StartDialupDialog()
        {
            if (!this.CustomerSession.IsTerminatingTerminated)
            {
                var configuration = ApplicationConfiguration.GetDialupConfiguration();

                try
                {
                    //Start Dialup dialog which gets the number user wants to dial.
                    DialupDialog dialupDialog = new DialupDialog(CustomerSession.CustomerServiceChannel.ServiceChannelCall, configuration);
                    dialupDialog.Completed += new EventHandler <DialogCompletedEventArgs>(this.DialupDialogCompleted);
                    dialupDialog.Run();
                }
                catch (InvalidOperationException exp)
                {
                    this.EndService(exp);
                }
            }
        }