public void LogEvent(string sUnid, string sMsg, int iStatus, int iBatch)
        {
            UncBasedInstaller.wslogger.WS_Logger ws = new UncBasedInstaller.wslogger.WS_Logger();

            ws.Logger(sUnid, sMsg, iStatus, iBatch);
            ws.Dispose();
        }
예제 #2
0
        private static void wcDownLoadDone(object sender, AsyncCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                Console.WriteLine("  Error Downloading  - Message - {0}", e.Error.Message);
                UncBasedInstaller.wslogger.WS_Logger ws = new UncBasedInstaller.wslogger.WS_Logger();
                //  Installer.wslogger.WS_Logger ws = new Installer.wslogger.WS_Logger();
                ws.Logger(sUnid, sCurrentFile + " - " + e.Error.Message, -1, iBatchCl);
                //       throw   new Exception(e.Error.Message ) ;
                //   Console.ReadLine();
            }

            Console.WriteLine("File Download Complete");
        }
 public void LogEvent()
 {
     UncBasedInstaller.wslogger.WS_Logger ws = new UncBasedInstaller.wslogger.WS_Logger();
     // ws.Timeout = 20000;
     IBatchNo = -1;
     try
     {
         int iBatch = int.Parse(ws.FindNextId(sUnid));
         IBatchNo = iBatch;
         ws.Logger(sUnid, sXmlDoc, 99999, iBatch);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         ws.Dispose();
     }
 }