Update di TUTTI i metodi in avvio con MP_Startup.Init()

This commit is contained in:
Samuele E. Locatelli
2018-11-06 12:24:39 +01:00
parent 963e4aa2e1
commit 70b9bf7b21
20 changed files with 171 additions and 104 deletions
Vendored
+1 -1
View File
@@ -17,7 +17,7 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=983']) {
withEnv(['NEXT_BUILD_NUMBER=985']) {
// env.versionNumber = VersionNumber(versionNumberString : '6.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '6.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO'
+13
View File
@@ -0,0 +1,13 @@
using SteamWare;
namespace MP_ADM
{
public class MP_Startup
{
public static void Init()
{
// inizializzo appConf prima di tutto il resto...
memLayer.ML.resetAppConf();
}
}
}
+8 -11
View File
@@ -1,18 +1,15 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls;
using System.Web.Routing;
namespace MP_ADM
{
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);
}
}
}
+3 -4
View File
@@ -1,11 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;
using System.Web.Routing;
using System.Web.Security;
using System.Web.SessionState;
namespace MP_ADM
{
@@ -16,6 +12,9 @@ namespace MP_ADM
// Codice eseguito all'avvio dell'applicazione
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
// avvio il metodo init x applicazione...
MP_Startup.Init();
}
}
}
+1
View File
@@ -493,6 +493,7 @@
<DependentUpon>approvazioneProd.aspx</DependentUpon>
</Compile>
<Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="App_Start\MP_Startup.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="Barcode.aspx.cs">
<DependentUpon>Barcode.aspx</DependentUpon>
+2 -4
View File
@@ -9,13 +9,11 @@ namespace MP_IO
{
protected void Application_Start()
{
// Codice eseguito all'avvio dell'applicazione
AreaRegistration.RegisterAllAreas();
//GlobalConfiguration.Configure(WebApiConfig.Register);
//FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
//BundleConfig.RegisterBundles(BundleTable.Bundles);
// avvio il metodo init...
// avvio il metodo init x applicazione...
MP_Startup.Init();
}
}
+13
View File
@@ -0,0 +1,13 @@
using SteamWare;
namespace MP
{
public class MP_Startup
{
public static void Init()
{
// inizializzo appConf prima di tutto il resto...
memLayer.ML.resetAppConf();
}
}
}
+10 -10
View File
@@ -3,17 +3,17 @@ using System.Web.Routing;
namespace MP
{
public class RouteConfig
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}
+12 -8
View File
@@ -4,14 +4,18 @@ using System.Web.Routing;
namespace MP
{
public class MvcApplication : System.Web.HttpApplication
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
// Codice eseguito all'avvio dell'applicazione
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
// avvio il metodo init x applicazione...
MP_Startup.Init();
}
}
}
+1
View File
@@ -125,6 +125,7 @@
</Compile>
<Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="App_Start\FilterConfig.cs" />
<Compile Include="App_Start\MP_Startup.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Global.asax.cs">
+13
View File
@@ -0,0 +1,13 @@
using SteamWare;
namespace MP_MON
{
public class MP_Startup
{
public static void Init()
{
// inizializzo appConf prima di tutto il resto...
memLayer.ML.resetAppConf();
}
}
}
+10 -10
View File
@@ -3,17 +3,17 @@ using System.Web.Routing;
namespace MP_MON
{
public class RouteConfig
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}
+12 -8
View File
@@ -4,14 +4,18 @@ using System.Web.Routing;
namespace MP_MON
{
public class MvcApplication : System.Web.HttpApplication
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
// Codice eseguito all'avvio dell'applicazione
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
// avvio il metodo init x applicazione...
MP_Startup.Init();
}
}
}
+1
View File
@@ -139,6 +139,7 @@
</Compile>
<Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="App_Start\FilterConfig.cs" />
<Compile Include="App_Start\MP_Startup.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="Controllers\MachineController.cs" />
<Compile Include="Controllers\HomeController.cs" />
+13
View File
@@ -0,0 +1,13 @@
using SteamWare;
namespace MoonPro
{
public class MP_Startup
{
public static void Init()
{
// inizializzo appConf prima di tutto il resto...
memLayer.ML.resetAppConf();
}
}
}
+4 -6
View File
@@ -9,38 +9,36 @@ namespace MoonPro
protected void Application_Start(object sender, EventArgs e)
{
// Codice eseguito all'avvio dell'applicazione
BundleConfig.RegisterBundles(BundleTable.Bundles);
RouteConfig.RegisterRoutes(RouteTable.Routes);
// avvio il metodo init x applicazione...
MP_Startup.Init();
}
protected void Session_Start(object sender, EventArgs e)
{
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
}
protected void Session_End(object sender, EventArgs e)
{
}
protected void Application_End(object sender, EventArgs e)
{
}
}
}
+1
View File
@@ -228,6 +228,7 @@
<DependentUpon>AnalisiProduzione.aspx</DependentUpon>
</Compile>
<Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="App_Start\MP_Startup.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
+13
View File
@@ -0,0 +1,13 @@
using SteamWare;
namespace MoonProTablet
{
public class MP_Startup
{
public static void Init()
{
// inizializzo appConf prima di tutto il resto...
memLayer.ML.resetAppConf();
}
}
}
+34 -39
View File
@@ -4,46 +4,41 @@ using System.Web.Routing;
namespace MoonProTablet
{
public class Global : System.Web.HttpApplication
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
// Codice eseguito all'avvio dell'applicazione
BundleConfig.RegisterBundles(BundleTable.Bundles);
RouteConfig.RegisterRoutes(RouteTable.Routes);
protected void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
BundleConfig.RegisterBundles(BundleTable.Bundles);
// aggiungo friendlyUrls...
RouteConfig.RegisterRoutes(RouteTable.Routes);
}
protected void Session_Start(object sender, EventArgs e)
{
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
}
protected void Session_End(object sender, EventArgs e)
{
}
protected void Application_End(object sender, EventArgs e)
{
}
// avvio il metodo init x applicazione...
MP_Startup.Init();
}
protected void Session_Start(object sender, EventArgs e)
{
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
}
protected void Session_End(object sender, EventArgs e)
{
}
protected void Application_End(object sender, EventArgs e)
{
}
}
}
+6 -3
View File
@@ -21,9 +21,11 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>
<IISExpressSSLPort>44328</IISExpressSSLPort>
<IISExpressAnonymousAuthentication>enabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication>disabled</IISExpressWindowsAuthentication>
<IISExpressSSLPort>44384</IISExpressSSLPort>
<IISExpressAnonymousAuthentication>
</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication>
</IISExpressWindowsAuthentication>
<IISExpressUseClassicPipelineMode />
<TargetFrameworkProfile />
<UseGlobalApplicationHostFile />
@@ -569,6 +571,7 @@
<DependentUpon>About.aspx</DependentUpon>
</Compile>
<Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="App_Start\MP_Startup.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="Commenti.aspx.cs">
<DependentUpon>Commenti.aspx</DependentUpon>