Exemplo n.º 1
0
 static void Main(string[] args)
 {
     try
     {
         log4net.Config.XmlConfigurator.Configure();
         string dirPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\SocialScoupDataServiceSetup";
         string path = dirPath + "\\logs.txt";
         if (!File.Exists(path))
         {
             //  File.Create(path);
         }
         GlobusLogHelper.log.Error("data");
         GlobusLogHelper.log.Info("dcwcw");
         SocialSiteData objSiteData = new SocialSiteData();
         Thread thread = new Thread(objSiteData.GetSocialSiteData);
         thread.Start();
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error : " + ex.StackTrace);
     }
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     try
     {
         log4net.Config.XmlConfigurator.Configure();
         string dirPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\SocialScoupDataServiceSetup";
         string path    = dirPath + "\\logs.txt";
         if (!File.Exists(path))
         {
             //  File.Create(path);
         }
         GlobusLogHelper.log.Error("data");
         GlobusLogHelper.log.Info("dcwcw");
         SocialSiteData objSiteData = new SocialSiteData();
         Thread         thread      = new Thread(objSiteData.GetSocialSiteData);
         thread.Start();
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error : " + ex.StackTrace);
     }
 }