From efd84437b5956a6478bcdcc46c9e8b52b650e5bb Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 27 Aug 2021 10:15:29 +0200 Subject: [PATCH] Rimozione elmah e quartz --- GWMS.UI/GWMS.UI.csproj | 10 ++++---- GWMS.UI/QuartzHostedService.cs | 42 ---------------------------------- GWMS.UI/Startup.cs | 13 ++++------- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 6 files changed, 13 insertions(+), 58 deletions(-) delete mode 100644 GWMS.UI/QuartzHostedService.cs diff --git a/GWMS.UI/GWMS.UI.csproj b/GWMS.UI/GWMS.UI.csproj index a4ae0f4..12acb7a 100644 --- a/GWMS.UI/GWMS.UI.csproj +++ b/GWMS.UI/GWMS.UI.csproj @@ -2,10 +2,14 @@ net5.0 - 1.0.2108.2619 + 1.0.2108.2710 95c9f021-52d1-4390-a670-5810b7b777b0 + + + + @@ -34,9 +38,6 @@ - - - @@ -47,7 +48,6 @@ - diff --git a/GWMS.UI/QuartzHostedService.cs b/GWMS.UI/QuartzHostedService.cs deleted file mode 100644 index 48ab510..0000000 --- a/GWMS.UI/QuartzHostedService.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Microsoft.Extensions.Hosting; -using Quartz; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; - -namespace GWMS.UI -{ - public class QuartzHostedService : IHostedService - { - #region Private Fields - - private readonly IScheduler _scheduler; - - #endregion Private Fields - - #region Public Constructors - - public QuartzHostedService(IScheduler scheduler) - { - _scheduler = scheduler; - } - - #endregion Public Constructors - - #region Public Methods - - public async Task StartAsync(CancellationToken cancellationToken) - { - await _scheduler?.Start(cancellationToken); - } - - public async Task StopAsync(CancellationToken cancellationToken) - { - await _scheduler?.Shutdown(cancellationToken); - } - - #endregion Public Methods - } -} \ No newline at end of file diff --git a/GWMS.UI/Startup.cs b/GWMS.UI/Startup.cs index 2b758ea..ab5a9c4 100644 --- a/GWMS.UI/Startup.cs +++ b/GWMS.UI/Startup.cs @@ -1,7 +1,6 @@ using Blazorise; using Blazorise.Bootstrap; using Blazorise.Icons.FontAwesome; -using ElmahCore.Mvc; using GWMS.Data; using GWMS.UI.Areas.Identity; using GWMS.UI.Data; @@ -23,8 +22,6 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; using Microsoft.Extensions.Hosting; -using Quartz; -using Quartz.Impl; using System; using System.Collections.Generic; using System.Globalization; @@ -79,9 +76,9 @@ namespace GWMS.UI }); CultureInfo.DefaultThreadCurrentCulture = CultureInfo.CreateSpecificCulture("it-IT"); - // Registrazione Elmah: - // https://github.com/ElmahCore/ElmahCore - app.UseElmah(); + //// Registrazione Elmah: + //// https://github.com/ElmahCore/ElmahCore + //app.UseElmah(); // fix forwarders app.UseForwardedHeaders(new ForwardedHeadersOptions @@ -218,8 +215,8 @@ namespace GWMS.UI .AddBootstrapProviders() .AddFontAwesomeIcons(); - // Elmah - services.AddElmah(); + //// Elmah + //services.AddElmah(); //string elmaConn = "Data Source=SQL2016DEV;Initial Catalog=Elmah;User ID=sa;Password=keyhammer16;integrated security=False;MultipleActiveResultSets=True;App=SHERPA.BBM;"; //services.AddElmah(options => //{ diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index a06830a..104d484 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ GWMS - Gas Warehouse Management System -

Versione: 1.0.2108.2619

+

Versione: 1.0.2108.2710


Note di rilascio:
  • diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt index 1cbb39c..41ac18d 100644 --- a/Resources/VersNum.txt +++ b/Resources/VersNum.txt @@ -1 +1 @@ -1.0.2108.2619 +1.0.2108.2710 diff --git a/Resources/manifest.xml b/Resources/manifest.xml index 0e20dc2..d325834 100644 --- a/Resources/manifest.xml +++ b/Resources/manifest.xml @@ -1,6 +1,6 @@ - 1.0.2108.2619 + 1.0.2108.2710 http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html false