Exemplo n.º 1
0
 void MyDialer_VMuktiEvent_Logoff(object sender, VMuktiEventArgs e)
 {
     try
     {
         VMuktiHelper.CallEvent("SetDisposition", this, new VMuktiEventArgs(100, "None", false));
         channelManager.CallExit();
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "MyDialer_VMuktiEvent_Logoff()", "MyDialer.xaml.cs");
     }
 }
Exemplo n.º 2
0
        void onExit()
        {
            try
            {
                if (!isExitCalled)
                {
                    VMuktiHelper.UnRegisterEvent("SetDispositionForPredictive");
                    VMuktiHelper.UnRegisterEvent("SetChannelStatusForPredictive");

                    if (CallInfoChannel != null)
                    {
                        CallInfoChannel.Close();
                        CallInfoChannel.Dispose();
                        CallInfoChannel = null;
                    }
                    isExitCalled = true;
                }
                objChannelManager.CallExit();
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "onExit()", "PredictiveDialer.xaml.cs");
            }
        }