Ejemplo n.º 1
0
        public static async Task TestGenarate()
        {
            try
            {
                Console.WriteLine("RecurringJobTestHangFire_Master Running.. at " + DateTime.Now.ToString() + " " + TimeZoneInfo.Local.ToString());
                var repSync = new SyncRepository(UtilsProvider.HostingEnvironment, UtilsProvider.Config);

                await repSync.GenerateReport(new CustomModel.ParamReportModel {
                    UnitNo      = "C01",
                    TDefectId   = 44489,
                    ProjectCode = "10060",
                    ProjectType = "H"
                });
            }
            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;
            }
        }