//public static async Task RecurringJobDaily_Master() //{ // try // { // Console.WriteLine("RecurringJobDaily_Master Running.. at " + DateTime.Now.ToString() + " " + TimeZoneInfo.Local.ToString()); // var repSync = new SyncRepository(UtilsProvider.HostingEnvironment, UtilsProvider.Config); // await repSync.ReplicateMasterWebToMobileAsync(); // } // catch (Exception ex) // { // while (ex.InnerException != null) // ex = ex.InnerException; // var ilog = UtilsProvider.ApplicationLogging.CreateLogger<Startup>(); // ilog.LogError("RecurringJobDaily_Master Error :: " + ex.Message); // throw ex; // } //} public static async Task RecurringJobTestHangFire_Master() { try { Console.WriteLine("RecurringJobTestHangFire_Master Running.. at " + DateTime.Now.ToString() + " " + TimeZoneInfo.Local.ToString()); var repSync = new SyncRepository(UtilsProvider.HostingEnvironment, UtilsProvider.Config); await repSync.TanonchaiJobSample(); } catch (Exception ex) { while (ex.InnerException != null) { ex = ex.InnerException; } var ilog = UtilsProvider.ApplicationLogging.CreateLogger <Startup>(); ilog.LogError("RecurringJobDaily_Master Error :: " + ex.Message); throw ex; } }