33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.IO;
|
|||
|
using Payroll.BO;
|
|||
|
|
|||
|
namespace Payroll.NotifProcessInterface
|
|||
|
{
|
|||
|
class Program
|
|||
|
{
|
|||
|
static void Main(string[] args)
|
|||
|
{
|
|||
|
ConfigurationManager _Configure = new ConfigurationManager();
|
|||
|
_Configure.LoadConfiguration();
|
|||
|
try
|
|||
|
{
|
|||
|
NotificationProcess oNotifyProcess = new NotificationProcess();
|
|||
|
oNotifyProcess.Process(new object());
|
|||
|
StreamWriter ofile = new StreamWriter("LogFile.txt", true);
|
|||
|
ofile.WriteLine("Date & Time : {0}, Notification Process Completed successfully.\n", DateTime.Now.ToString());
|
|||
|
ofile.Close();
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
StreamWriter ofile = new StreamWriter("LogFile.txt", true);
|
|||
|
ofile.WriteLine("Date & Time : {0}, Error in Processing Notification, Reason: {1}.", DateTime.Now.ToString(), ex.Message);
|
|||
|
ofile.Close();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|