static void Main(string[] args) { var seriLog = new ApplicationLogGenerator.SchedulerSerilogs(); AccessDBReader.InitLogger(seriLog); AttendanceManager.InitLogger(seriLog); AccessDBReader.Read(); AttendanceManager.LoadToMongoDB(); Console.ReadLine(); }
static void Main(string[] args) { AccessDBReader.Read(); //var accessPoints = JsonConvert.SerializeObject(AttendanceManager.AccessPoints, Formatting.Indented); //System.IO.File.WriteAllText(@"C:\Temp\Attendance\AccessPoints.txt", accessPoints); //var employees = JsonConvert.SerializeObject(AttendanceManager.Employees, Formatting.Indented); //System.IO.File.WriteAllText(@"C:\Temp\Attendance\Employees.txt", employees); var accessEvents = JsonConvert.SerializeObject(AttendanceManager.AccessEvents, Formatting.Indented); System.IO.File.WriteAllText(@"C:\Temp\Attendance\AccessEvents.txt", accessEvents); AttendanceManager.LoadToMongoDB(); //AttendanceManager.LoadUsersToDB(); }