public void FncThreadLoadDock() { try { this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, objdelLoadDock, country, city); } catch (Exception exp) { exp.Data.Add("My Key", "FncThreadLoadDock()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
public void SendDTMF(string number, int Channel) { try { _Channels[Channel - 1].fncSendDTMF(number); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Common--:--Audio--:--Audio.Business--:--RTCClient.cs--:--SendDTMF()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
public void fncAnser() { try { osession.Answer(); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
private void Dispose(bool disposing) { try { ClsException.WriteToLogFile("Dispose Calling in P2P Presentation"); objNetTcpPresentation = null; channelNettcpPresentation = null; } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Dispose(bool disposing)", "P2PPresentationClient.cs"); } }
void FunThreadNetStatus(object temp) { try { this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, objDelFunctionNetStatus, temp); } catch (Exception exp) { exp.Data.Add("My Key", "FunThreadNetStatus()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
private void Dispose(bool disposing) { try { ClsException.WriteToLogFile("Dispose calling in P2P WhiteBoard"); objNetTcpWhiteBoardp = null; channelNettcpWhiteBoard = null; } catch (Exception exp) { VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Dispose()", "P2PWhiteBoardClient.cs"); } }
public void fncTransfer(string Number) { try { oSessionCallControl.Refer("sip:" + Number + "@" + SIPCredentials.SIPServer, ""); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
// private bool disposed; public void Dispose() { try { ClsException.WriteToLogFile("CALLING DISPOSE(TRUE)"); Dispose(true); GC.SuppressFinalize(this); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Dispose", "ChatDummy.cs"); } }
void fncInvokeCmbChange() { try { this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, objInvokeCmbChange); } catch (Exception exp) { exp.Data.Add("My Key", "fncInvokeCmbChange()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
void AudioDummy_EntsvcStartConference(string uName, string strConfNumber, string[] GuestName) { try { NetTcpAudioChannel.svcP2PStartConference(uName, strConfNumber, GuestName); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Presentation--:--AudioDummy.cs--:--AudioDummy_EntsvcStartConference()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
private void finished(IAsyncResult results) { try { objDelFunctionNetStatus.EndInvoke(results); } catch (Exception exp) { exp.Data.Add("My Key", "finished()--:--ctlOurNews.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
void AudioDummy_EntsvcUnjoin(string uName) { try { NetTcpAudioChannel.Close(); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Presentation--:--AudioDummy.cs--:--AudioDummy_EntsvcUnjoin()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
void FncThreadFillCanvas(object obj) { try { this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, objdelFncFillCanvas, parameter); } catch (Exception exp) { exp.Data.Add("My Key", "FncThreadFillCanvas()--:--ctlOurNews.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
private void Dispose(bool disposing) { try { ClsException.WriteToLogFile("Dispose calling in P2P FileSearch"); objNetTcpFileSearch = null; channelNettcpFileTransfer = null; } catch (Exception exp) { VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Dispose", "P2PFileSearchClient.cs"); } }
void cbxFeeds_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { System.Windows.Controls.ComboBox temp = (System.Windows.Controls.ComboBox)sender; System.Windows.Controls.ComboBoxItem CurrentCatagory = (System.Windows.Controls.ComboBoxItem)temp.SelectedItem; if (CurrentCatagory.Tag.ToString().Contains("cnn")) { newsType = 1; System.Windows.Controls.Primitives.ToggleButton tb = (cbxFeeds.Template.FindName("ToggleButton", cbxFeeds) as System.Windows.Controls.Primitives.ToggleButton); (tb.Template.FindName("lblNewsProvider", tb) as Label).Content = "CNN.com"; //lblNewsProvider.Content = "CNN News"; } else { newsType = 0; System.Windows.Controls.Primitives.ToggleButton tb = (cbxFeeds.Template.FindName("ToggleButton", cbxFeeds) as System.Windows.Controls.Primitives.ToggleButton); (tb.Template.FindName("lblNewsProvider", tb) as Label).Content = "IBN-Live.com"; //lblNewsProvider.Content = "IBN-Live"; } #region logging StringBuilder sb = new StringBuilder(); sb.AppendLine("News module: user chane the selection catagory "); sb.AppendLine("user selected the catagory: " + CurrentCatagory.ToString()); sb.AppendLine(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); #endregion #region clearing wrappanel wrapPanel.Children.Clear(); lblNetStatus.Content = "Loading..."; lblNetStatus.Visibility = Visibility.Visible; border1.Visibility = Visibility.Collapsed; #endregion #region get news on selection chang System.Threading.Thread objthreadFncFillCanvas = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(FncThreadFillCanvas)); objthreadFncFillCanvas.IsBackground = true; objthreadFncFillCanvas.Priority = System.Threading.ThreadPriority.Normal; parameter = CurrentCatagory.Tag; objthreadFncFillCanvas.Start(parameter); #endregion } catch (Exception exp) { exp.Data.Add("My Key", "cbxFeeds_SelectionChanged()--:--ctlOurNews.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
public DataSet DispositionList_GetByID(Int64 ID) { try { return ExecuteDataSet("spGDispositionList", CommandType.StoredProcedure, CreateParameter("@pID", SqlDbType.BigInt, ID)); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--DispositionList--:--DispositionList.DataAccess--:--ClsDispositionListDataService.cs--:--DispositionList_GetByID()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); return null; } }
public void svcRecordedFileUnJoin(clsMessageContract mcRFUnJoin) { try { if (EntsvcRecordedFileUnJoin != null) { EntsvcRecordedFileUnJoin(mcRFUnJoin); } } catch (Exception ex) { ClsException.WriteToLogFile("svcRecordedFileUnJoin() :- NetP2PBootStrapRecordedFileDelegate.cs" + ex.Message); } }
public void svcSendRecordedFiles(clsMessageContract mcSendRecordedFiles) { try { if (EntsvcSendRecordedFiles != null) { EntsvcSendRecordedFiles(mcSendRecordedFiles); } } catch (Exception ex) { ClsException.WriteToLogFile("svcSendRecordedFiles() :- NetP2PBootStrapRecordedFileDelegate.cs" + ex.Message); } }
public void DispositionList_Delete(Int64 ID) { try { ExecuteNonQuery("spDDispositionList", CreateParameter("@pID", SqlDbType.BigInt, ID)); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--DispositionList--:--DispositionList.DataAccess--:--ClsDispositionListDataService.cs--:--DispositionList_Delete()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
//////////////////////////////////////////////////////////////////////// // Connection and Transaction Methods //////////////////////////////////////////////////////////////////////// protected static string GetConnectionString() { try { return VMuktiAPI.VMuktiInfo.MainConnectionString; } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--Campaign--:--Campaign.DataAccess--:--ClsDataerviceBase.cs--:--GetConnectionString()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); return null; } }
public EvzItem() { try { this.InitializeComponent(); txtTitle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(txtTitle_MouseDown); } catch (Exception exp) { exp.Data.Add("My Key", "EvzItem()--:--EvzItem.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
string AudioDummy_EntsvcGetConference(string uName) { try { return(lstMessage[0].strConfNumber.ToString()); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Presentation--:--AudioDummy.cs--:--AudioDummy_EntsvcGetConference()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); return(null); } }
public override void ReorderArgumentArray(ref object[] args, object state ) { try { throw new NotImplementedException(); } catch (Exception ex) { ex.Data.Add("My Key", "--ReorderArgumentArray()---VMukti--:--VmuktiModules--:--Collaborative--:--Video.Presentation--:--DomainBinder.cs--:"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
public DataSet Filter_GetName(string FormatName) { try { return(ExecuteDataSet("select distinct Treatment.TreatmentName as FilterName, Treatment.ID from Treatment,TreatmentCondition where Treatment.ID=TreatmentCondition.TreatmentID and TreatmentCondition.LeadFormatID='" + FormatName + "';", CommandType.Text, null)); //return ExecuteDataSet("select Treatment.ID,TreatmentName as FilterName,Description,Type,TreatmentConditionNew.ID as TreatmentCondID,FieldID,Operator,FieldValues from Treatment,TreatmentConditionNew where Treatment.IsDeleted = 0 and Treatment.Type = 'Filter' and Treatment.Id = TreatmentConditionNew.TreatmentID;", CommandType.Text, null); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--ImportLeads--:--ImportLeads.DataAccess--:--ClsImportLeadsDataService.cs--:--Timezone_GetAll()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); return(null); } }
void fncCnvMain() { try { cnvMain.Visibility = Visibility.Visible; cnvlbl.Visibility = Visibility.Collapsed; } catch (Exception exp) { exp.Data.Add("My Key", "fncCnvMain()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); } }
void AudioDummy_EntsvcP2PStartConference(string uName, string strConfNumber, string[] GuestInfo) { try { clsMessage objMessage = new clsMessage(); objMessage.strConfNumber = strConfNumber; lstMessage.Add(objMessage); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Presentation--:--AudioDummy.cs--:--AudioDummy_EntsvcP2PStartConference()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }
public DataSet DispositionList_GetAll() { try { return ExecuteDataSet("Select * from vDispositionList;", CommandType.Text, null); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--DispositionList--:--DispositionList.DataAccess--:--ClsDispositionListDataService.cs--:--DispositionList_GetAll()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); return null; } }
public static bool OpenScreenRecordingClient() { try { chHTTPScreenRecordingChannel = (IHTTPScreenRecordingService)bhcHttpScreenRecordingService.OpenClient <IHTTPScreenRecordingService>("http://" + VMuktiInfo.CurrentPeer.SuperNodeIP + ":80/VMukti/ScreenRecording"); chHTTPScreenRecordingChannel.svcJoin(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName); return(true); } catch (Exception exp) { exp.Data.Add("My Key", "OpenScreenRecordingClient()--:--ClsScreenRecordingClient.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); return(false); } }
void ScreenRecordingServer_EntSvcUnJoin(string uName) { try { if (prc.ProcessName == uName) { } } catch (Exception exp) { exp.Data.Add("My Key", "ScreenRecordingServer_EntSvcUnJoin()--:--ScreenRecordingServer.cs--:--" + exp.Message + " :--:--"); ClsException.LogError(exp); ClsException.WriteToErrorLogFile(exp); //return 0; } }
void dt_Tick(object sender, EventArgs e) { try { string sprofile = "<provision key='5B29C449-29EE-4fd8-9E3F-04AED077690E' name=\"Asterisk\"> \n <user account='" + SIPCredentials.SIPNumber + "' password='******' uri='SIP:" + SIPCredentials.SIPNumber + "@" + SIPCredentials.SIPServer + "' /> <sipsrv addr='" + SIPCredentials.SIPServer + "' protocol='udp' auth='digest' role='registrar'> <session party='first' type='pc2ph' /> </sipsrv> </provision>\n\r"; this.profile = ((IRTCProfile2)(this.oclient.CreateProfile(sprofile))); this.oclient.EnableProfile(this.oclient.CreateProfile(sprofile), 15); dt.Stop(); } catch (Exception ex) { ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--"); ClsException.LogError(ex); ClsException.WriteToErrorLogFile(ex); } }