diff --git a/Jenkinsfile b/Jenkinsfile index af5c080..6c94616 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { steps { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=309']) { + withEnv(['NEXT_BUILD_NUMBER=310']) { // env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.versionNumberBeta = VersionNumber(versionNumberString : '1.1.${BUILD_DATE_FORMATTED, "yyMM"}-beta.${BUILDS_ALL_TIME}', projectStartDate : '2019-07-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') diff --git a/NKC_WF/App_Start/NKC_Startup.cs b/NKC_WF/App_Start/NKC_Startup.cs new file mode 100644 index 0000000..c80a40b --- /dev/null +++ b/NKC_WF/App_Start/NKC_Startup.cs @@ -0,0 +1,26 @@ +using SteamWare; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace NKC_WF.App_Start +{ + public class NKC_Startup + { + public static void Init() + { + logger.lg.scriviLog("Start NKC_Startup.init()", tipoLog.STARTUP); + try + { + // inizializzo appConf prima di tutto il resto... + memLayer.ML.resetAppConf(); + logger.lg.scriviLog("Completed preliminary setup AppConf execution", tipoLog.STARTUP); + } + catch (Exception exc) + { + logger.lg.scriviLog($"Exception during preliminary INIT app phase{Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } + } + } +} \ No newline at end of file diff --git a/NKC_WF/Global.asax.cs b/NKC_WF/Global.asax.cs index b41015a..8239f25 100644 --- a/NKC_WF/Global.asax.cs +++ b/NKC_WF/Global.asax.cs @@ -1,4 +1,5 @@ -using System; +using NKC_WF.App_Start; +using System; using System.Web; using System.Web.Http; using System.Web.Mvc; @@ -17,6 +18,9 @@ namespace NKC_WF FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); + + // avvio il metodo init x applicazione... + NKC_Startup.Init(); } } } \ No newline at end of file diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 14d4c9d..6ab5e30 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -612,6 +612,7 @@ VersGen.cs +