public ctlrptActiveCall() { try { InitializeComponent(); ConnectionString = VMuktiAPI.VMuktiInfo.MainConnectionString; if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory.ToString() + "rptActiveCall.sdf")) { System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory.ToString() + "rptActiveCall.sdf"); } SqlCeEngine clientEngine = new SqlCeEngine(ClientConnectionString); clientEngine.CreateDatabase(); LocalSQLConn = new SqlCeConnection(); LocalSQLConn.ConnectionString = ClientConnectionString; LocalSQLConn.Open(); fncActiveCallTable(); LocalSQLConn.Close(); objRefreshReport = new delRefreshReport(fncRefreshReport); NetPeerClient npcActiveCall = new NetPeerClient(); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcJoinCall += new NetP2PBootStrapActiveCallReportDelegates.DelsvcJoinCall(ctlrptActiveCall_EntsvcJoinCall); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcGetCallInfo += new NetP2PBootStrapActiveCallReportDelegates.DelsvcGetCallInfo(ctlrptActiveCall_EntsvcGetCallInfo); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcActiveCalls += new NetP2PBootStrapActiveCallReportDelegates.DelsvcActiveCalls(ctlrptActiveCall_EntsvcActiveCalls); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcSetDuration += new NetP2PBootStrapActiveCallReportDelegates.DelsvcSetDuration(ctlrptActiveCall_EntsvcSetDuration); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcUnJoinCall += new NetP2PBootStrapActiveCallReportDelegates.DelsvcUnJoinCall(ctlrptActiveCall_EntsvcUnJoinCall); channelNetTcpActiveCall = (INetP2PBootStrapReportChannel)npcActiveCall.OpenClient<INetP2PBootStrapReportChannel>("net.tcp://" + VMuktiAPI.VMuktiInfo.BootStrapIPs[0] + ":6000/NetP2PBootStrapActiveCallReport", "ActiveCallMesh", ref objActiveCall); channelNetTcpActiveCall.svcJoinCall(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlrptActiveCall", "ctlrptActiveCall.xaml.cs"); } }
public ctlrptActiveAgent() { try { InitializeComponent(); rAudio = new DashBoard.Business.Audio.RTCAudio("1110", "1110", VMuktiAPI.VMuktiInfo.CurrentPeer.CurrentMachineIP.ToString()); tHostActiveAgent = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(hostActiveAgentService)); List<object> lstParams = new List<object>(); lstParams.Add("net.tcp://" +VMuktiAPI.VMuktiInfo.BootStrapIPs[0] + ":6000/NetP2PBootStrapActiveAgentReport"); lstParams.Add("P2PActiveAgentMesh"); tHostActiveAgent.Start(lstParams); objRefreshReport = new delRefreshReport(objdelRefreshReport); objBargeConf = new delBargConf(BargeConf); objBargeHangup = new delBargeHangup(BargeHangup); ConnectionString = VMuktiAPI.VMuktiInfo.MainConnectionString; SqlCeEngine clientEngine = new SqlCeEngine(ClientConnectionString); LocalSQLConn = new SqlCeConnection(); LocalSQLConn.ConnectionString = ClientConnectionString; LocalSQLConn.Open(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlrptActiveAgent", "ctlrptActiveAgent.xaml.cs"); } }
public ctlrptActiveCall() { try { InitializeComponent(); ConnectionString = VMuktiAPI.VMuktiInfo.MainConnectionString; if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory.ToString() + "rptActiveCall.sdf")) { System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory.ToString() + "rptActiveCall.sdf"); } SqlCeEngine clientEngine = new SqlCeEngine(ClientConnectionString); clientEngine.CreateDatabase(); LocalSQLConn = new SqlCeConnection(); LocalSQLConn.ConnectionString = ClientConnectionString; LocalSQLConn.Open(); fncActiveCallTable(); LocalSQLConn.Close(); objRefreshReport = new delRefreshReport(fncRefreshReport); NetPeerClient npcActiveCall = new NetPeerClient(); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcJoinCall += new NetP2PBootStrapActiveCallReportDelegates.DelsvcJoinCall(ctlrptActiveCall_EntsvcJoinCall); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcGetCallInfo += new NetP2PBootStrapActiveCallReportDelegates.DelsvcGetCallInfo(ctlrptActiveCall_EntsvcGetCallInfo); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcActiveCalls += new NetP2PBootStrapActiveCallReportDelegates.DelsvcActiveCalls(ctlrptActiveCall_EntsvcActiveCalls); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcSetDuration += new NetP2PBootStrapActiveCallReportDelegates.DelsvcSetDuration(ctlrptActiveCall_EntsvcSetDuration); ((NetP2PBootStrapActiveCallReportDelegates)objActiveCall).EntsvcUnJoinCall += new NetP2PBootStrapActiveCallReportDelegates.DelsvcUnJoinCall(ctlrptActiveCall_EntsvcUnJoinCall); channelNetTcpActiveCall = (INetP2PBootStrapReportChannel)npcActiveCall.OpenClient <INetP2PBootStrapReportChannel>("net.tcp://" + VMuktiAPI.VMuktiInfo.BootStrapIPs[0] + ":6000/NetP2PBootStrapActiveCallReport", "ActiveCallMesh", ref objActiveCall); channelNetTcpActiveCall.svcJoinCall(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlrptActiveCall", "ctlrptActiveCall.xaml.cs"); } }
public ctlrptActiveAgent() { try { InitializeComponent(); rAudio = new DashBoard.Business.Audio.RTCAudio("1110", "1110", VMuktiAPI.VMuktiInfo.CurrentPeer.CurrentMachineIP.ToString()); tHostActiveAgent = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(hostActiveAgentService)); List <object> lstParams = new List <object>(); lstParams.Add("net.tcp://" + VMuktiAPI.VMuktiInfo.BootStrapIPs[0] + ":6000/NetP2PBootStrapActiveAgentReport"); lstParams.Add("P2PActiveAgentMesh"); tHostActiveAgent.Start(lstParams); objRefreshReport = new delRefreshReport(objdelRefreshReport); objBargeConf = new delBargConf(BargeConf); objBargeHangup = new delBargeHangup(BargeHangup); ConnectionString = VMuktiAPI.VMuktiInfo.MainConnectionString; SqlCeEngine clientEngine = new SqlCeEngine(ClientConnectionString); LocalSQLConn = new SqlCeConnection(); LocalSQLConn.ConnectionString = ClientConnectionString; LocalSQLConn.Open(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlrptActiveAgent", "ctlrptActiveAgent.xaml.cs"); } }
public ctlrptActiveAgent(ModulePermissions[] MyPermissions) { try { InitializeComponent(); tHostActiveAgent = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(hostActiveAgentService)); List <object> lstParams = new List <object>(); lstParams.Add("net.tcp://" + VMuktiInfo.BootStrapIPs[0] + ":6000/NetP2PBootStrapActiveAgentReport"); lstParams.Add("P2PActiveAgentMesh"); tHostActiveAgent.Start(lstParams); objRefreshReport = new delRefreshReport(objdelRefreshReport); ConnectionString = VMuktiAPI.VMuktiInfo.MainConnectionString; if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory.ToString() + "rptActiveAgent.sdf")) { System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory.ToString() + "rptActiveAgent.sdf"); } SqlCeEngine clientEngine = new SqlCeEngine(ClientConnectionString); clientEngine.CreateDatabase(); LocalSQLConn = new SqlCeConnection(); LocalSQLConn.ConnectionString = ClientConnectionString; LocalSQLConn.Open(); fncActiveAgentTable(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlrptActiveAgent", "ctlrptActiveAgent.xaml.cs"); } }
public ctlrptActiveAgent(ModulePermissions[] MyPermissions) { try { InitializeComponent(); tHostActiveAgent = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(hostActiveAgentService)); List<object> lstParams = new List<object>(); lstParams.Add("net.tcp://" + VMuktiInfo.BootStrapIPs[0] + ":6000/NetP2PBootStrapActiveAgentReport"); lstParams.Add("P2PActiveAgentMesh"); tHostActiveAgent.Start(lstParams); objRefreshReport = new delRefreshReport(objdelRefreshReport); ConnectionString = VMuktiAPI.VMuktiInfo.MainConnectionString; if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory.ToString() + "rptActiveAgent.sdf")) { System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory.ToString() + "rptActiveAgent.sdf"); } SqlCeEngine clientEngine = new SqlCeEngine(ClientConnectionString); clientEngine.CreateDatabase(); LocalSQLConn = new SqlCeConnection(); LocalSQLConn.ConnectionString = ClientConnectionString; LocalSQLConn.Open(); fncActiveAgentTable(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlrptActiveAgent", "ctlrptActiveAgent.xaml.cs"); } }