Exemplo n.º 1
0
 public static ClsOptionCollection GetAll(int QuesID)
 {
     try
     {
         ClsOptionCollection obj = new ClsOptionCollection();
         obj.MapObjects(new ClsDynamicScriptDataService().Options_GetAll(QuesID));
         return(obj);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--CRMDesigner--:--CRMDesigner.Business--:--ClsOptionCollection.cs--:--GetAll()--");
         //ClsException.LogError(ex);
         //ClsException.WriteToErrorLogFile(ex);
         System.Text.StringBuilder sb = new StringBuilder();
         sb.AppendLine(ex.Message);
         sb.AppendLine();
         sb.AppendLine("StackTrace : " + ex.StackTrace);
         sb.AppendLine();
         sb.AppendLine("Location : " + ex.Data["My Key"].ToString());
         sb.AppendLine();
         sb1 = CreateTressInfo();
         sb.Append(sb1.ToString());
         VMuktiAPI.ClsLogging.WriteToTresslog(sb);
         return(null);
     }
 }
Exemplo n.º 2
0
 //public static StringBuilder sb1;
 //public static StringBuilder CreateTressInfo()
 //{
 //    StringBuilder sb = new StringBuilder();
 //    sb.Append("User Is : " + VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName);
 //    sb.AppendLine();
 //    sb.Append("Peer Type is : " + VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType.ToString());
 //    sb.AppendLine();
 //    sb.Append("User's SuperNode is : " + VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
 //    sb.AppendLine();
 //    sb.Append("User's Machine Ip Address : " + VMuktiAPI.GetIPAddress.ClsGetIP4Address.GetIP4Address());
 //    sb.AppendLine();
 //    sb.AppendLine("----------------------------------------------------------------------------------------");
 //    return sb;
 //}
 public static ClsOptionCollection GetAll(int QuesID)
 {
     try
     {
         ClsOptionCollection obj = new ClsOptionCollection();
         obj.MapObjects(new ClsDynamicScriptDataService().Options_GetAll(QuesID));
         return(obj);
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "GetAll()", "ClsOptionCollection.cs");
         return(null);
     }
 }