Exemplo n.º 1
0
 private static void HangfireExportGenreXLSX()
 {
     BackgroundJob.Schedule(() =>
                            ChinookServiceHelper.ExportGenreXLSX(),
                            TimeSpan.FromSeconds(30)
                            );
 }
Exemplo n.º 2
0
        private static void MainShell()
        {
            string         exePath     = Assembly.GetExecutingAssembly().Location;
            FileSystemInfo exeFileInfo = new FileInfo(exePath);

            try
            {
                LogManager.Trace(GetLog(exeFileInfo.Name, "Start"));

                // Export Genre TXT
                string filePath = ChinookServiceHelper.ExportGenreTXT();

                // Export Genre XLSX
                ChinookServiceHelper.ExportGenreXLSX();
            }
            finally
            {
                LogManager.Trace(GetLog(exeFileInfo.Name, "Stop"));
            }
        }
Exemplo n.º 3
0
 private static void HangfireExportGenreTXT()
 {
     BackgroundJob.Enqueue(() =>
                           ChinookServiceHelper.ExportGenreTXT()
                           );
 }