public void ClosePod() { try { VMuktiHelper.UnRegisterEvent("SetChannelValues"); VMuktiHelper.UnRegisterEvent("Logoff"); VMuktiHelper.UnRegisterEvent("AllModulesLoaded"); VMuktiHelper.UnRegisterEvent("SetDialerEnable"); VMuktiHelper.UnRegisterEvent("SetChannelStatus"); VMuktiHelper.UnRegisterEvent("SetDisposition"); channelManager.CallExit(); if (channelNetTcpDialer != null) { channelNetTcpDialer.svcUnJoin(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName); channelNetTcpDialer.Close(); channelNetTcpDialer = null; } if (channelNetTcpUploadRecorededFiles != null) { channelNetTcpUploadRecorededFiles.Close(); channelNetTcpUploadRecorededFiles = null; } } catch (Exception ex) { MessageBox.Show("Exception under ClosePod: " + ex.Message); VMuktiHelper.ExceptionHandler(ex, "ClosePod()", "MyDialer.xaml.cs"); } }
public void HostDashBoard(object lstparam) { try { List <object> lstTempObj = (List <object>)lstparam; strUri = lstTempObj[0].ToString(); NetPeerClient npcDashBoard = new NetPeerClient(); ((NetP2PBootStrapDashBoardDelegate)objDashBoard).EntsvcUnJoin += new NetP2PBootStrapDashBoardDelegate.delsvcUnJoin(PredictiveDialer_EntsvcUnJoin); ((NetP2PBootStrapDashBoardDelegate)objDashBoard).EntsvcJoin += new NetP2PBootStrapDashBoardDelegate.delsvcJoin(PredictiveDialer_EntsvcJoin); ((NetP2PBootStrapDashBoardDelegate)objDashBoard).EntsvcGetCallInfo += new NetP2PBootStrapDashBoardDelegate.DelsvcGetCallInfo(PredictiveDialer_EntsvcGetCallInfo); channelP2PDashBoard = (INetP2PBootStrapdashBoardChannel)npcDashBoard.OpenClient <INetP2PBootStrapdashBoardChannel>(strUri, lstTempObj[1].ToString(), ref objDashBoard); channelP2PDashBoard.svcJoin(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "HostDialerServices()", "MyDialer.xaml.cs"); } }
public void HostDashBoard(object lstparam) { try { List<object> lstTempObj = (List<object>)lstparam; strUri = lstTempObj[0].ToString(); NetPeerClient npcDashBoard = new NetPeerClient(); ((NetP2PBootStrapDashBoardDelegate)objDashBoard).EntsvcUnJoin += new NetP2PBootStrapDashBoardDelegate.delsvcUnJoin(PredictiveDialer_EntsvcUnJoin); ((NetP2PBootStrapDashBoardDelegate)objDashBoard).EntsvcJoin += new NetP2PBootStrapDashBoardDelegate.delsvcJoin(PredictiveDialer_EntsvcJoin); ((NetP2PBootStrapDashBoardDelegate)objDashBoard).EntsvcGetCallInfo += new NetP2PBootStrapDashBoardDelegate.DelsvcGetCallInfo(PredictiveDialer_EntsvcGetCallInfo); channelP2PDashBoard = (INetP2PBootStrapdashBoardChannel)npcDashBoard.OpenClient<INetP2PBootStrapdashBoardChannel>(strUri, lstTempObj[1].ToString(), ref objDashBoard); channelP2PDashBoard.svcJoin(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "HostDialerServices()", "MyDialer.xaml.cs"); } }
public void ClosePod() { try { VMuktiHelper.UnRegisterEvent("SetChannelValues"); VMuktiHelper.UnRegisterEvent("Logoff"); VMuktiHelper.UnRegisterEvent("AllModulesLoaded"); VMuktiHelper.UnRegisterEvent("SetDialerEnable"); VMuktiHelper.UnRegisterEvent("SetChannelStatus"); VMuktiHelper.UnRegisterEvent("SetDisposition"); channelManager.CallExit(); if (channelNetTcpDialer != null) { channelNetTcpDialer.svcUnJoin(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName); channelNetTcpDialer.Close(); channelNetTcpDialer = null; } if (channelNetTcpUploadRecorededFiles != null) { channelNetTcpUploadRecorededFiles.Close(); channelNetTcpUploadRecorededFiles = null; } } catch (Exception ex) { MessageBox.Show("Exception under ClosePod: " + ex.Message); VMuktiHelper.ExceptionHandler(ex, "ClosePod()", "MyDialer.xaml.cs"); } }