diff --git a/ES3/App_Start/BundleConfig.cs b/ES3/App_Start/BundleConfig.cs index 38ea2d6c..86068a51 100644 --- a/ES3/App_Start/BundleConfig.cs +++ b/ES3/App_Start/BundleConfig.cs @@ -33,6 +33,12 @@ namespace ES3 // pronti per passare alla produzione, usare lo strumento di compilazione disponibile all'indirizzo https://modernizr.com per selezionare solo i test necessari bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( "~/Scripts/modernizr-*")); + + bundles.Add(new ScriptBundle("~/bundles/jquery").Include( + "~/Scripts/jquery-{version}.js")); + + bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include( + "~/Scripts/jquery-ui-{version}.js")); } } } \ No newline at end of file diff --git a/ES3/App_Start/MP_Startup.cs b/ES3/App_Start/MP_Startup.cs new file mode 100644 index 00000000..e478390c --- /dev/null +++ b/ES3/App_Start/MP_Startup.cs @@ -0,0 +1,23 @@ +using SteamWare; +using System; + +namespace ES3 +{ + public class MP_Startup + { + public static void Init() + { + logger.lg.scriviLog("Esecuzione MyStartup.init()", tipoLog.STARTUP); + try + { + // inizializzo appConf prima di tutto il resto... + memLayer.ML.resetAppConf(); + logger.lg.scriviLog("Completata esecuzione preliminare setup AppConf", tipoLog.STARTUP); + } + catch (Exception exc) + { + logger.lg.scriviLog($"Eccezione in fase di INIT preliminare applicazione{Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } + } + } +} \ No newline at end of file diff --git a/ES3/App_Start/RouteConfig.cs b/ES3/App_Start/RouteConfig.cs index 7a98cba1..3e7f81c9 100644 --- a/ES3/App_Start/RouteConfig.cs +++ b/ES3/App_Start/RouteConfig.cs @@ -1,18 +1,15 @@ -using System; -using System.Collections.Generic; -using System.Web; using System.Web.Routing; using Microsoft.AspNet.FriendlyUrls; namespace ES3 { - public static class RouteConfig + public static class RouteConfig + { + public static void RegisterRoutes(RouteCollection routes) { - public static void RegisterRoutes(RouteCollection routes) - { - var settings = new FriendlyUrlSettings(); - settings.AutoRedirectMode = RedirectMode.Permanent; - routes.EnableFriendlyUrls(settings); - } + var settings = new FriendlyUrlSettings(); + settings.AutoRedirectMode = RedirectMode.Permanent; + routes.EnableFriendlyUrls(settings); } + } } diff --git a/ES3/ES3.csproj b/ES3/ES3.csproj index 678b4784..7e83caf2 100644 --- a/ES3/ES3.csproj +++ b/ES3/ES3.csproj @@ -1,5 +1,10 @@  + + + + + @@ -423,6 +428,7 @@ About.aspx + @@ -630,6 +636,17 @@ + + + + + + + + + + + 10.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) @@ -663,6 +680,11 @@ + + + + + diff --git a/ES3/Global.asax.cs b/ES3/Global.asax.cs index 6ca1cb22..691f5eb3 100644 --- a/ES3/Global.asax.cs +++ b/ES3/Global.asax.cs @@ -10,14 +10,17 @@ using System.Web.Http; namespace ES3 { - public class Global : HttpApplication + public class Global : HttpApplication + { + void Application_Start(object sender, EventArgs e) { - void Application_Start(object sender, EventArgs e) - { - // Codice eseguito all'avvio dell'applicazione - GlobalConfiguration.Configure(WebApiConfig.Register); - RouteConfig.RegisterRoutes(RouteTable.Routes); - BundleConfig.RegisterBundles(BundleTable.Bundles); - } + // Codice eseguito all'avvio dell'applicazione + GlobalConfiguration.Configure(WebApiConfig.Register); + RouteConfig.RegisterRoutes(RouteTable.Routes); + BundleConfig.RegisterBundles(BundleTable.Bundles); + + // avvio il metodo init x applicazione... + MP_Startup.Init(); } + } } \ No newline at end of file diff --git a/ES3/packages.config b/ES3/packages.config index 9d64062b..e00a518c 100644 --- a/ES3/packages.config +++ b/ES3/packages.config @@ -27,8 +27,13 @@ + + + + + diff --git a/MP-ADM/App_Start/MP_Startup.cs b/MP-ADM/App_Start/MP_Startup.cs index 77b7f1ce..e227d7c7 100644 --- a/MP-ADM/App_Start/MP_Startup.cs +++ b/MP-ADM/App_Start/MP_Startup.cs @@ -16,7 +16,7 @@ namespace MP_ADM } catch (Exception exc) { - logger.lg.scriviLog(string.Format("Eccezione in fase di INIT preliminare applicazione{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + logger.lg.scriviLog($"Eccezione in fase di INIT preliminare applicazione{Environment.NewLine}{exc}", tipoLog.EXCEPTION); } } }