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"); } }
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"); } }