Aggiunta classe avvio in globalasax x MP-IO x setup appConf all'avvio
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using SteamWare;
|
||||
|
||||
namespace MP_IO
|
||||
{
|
||||
public class MP_Startup
|
||||
{
|
||||
public static void Init()
|
||||
{
|
||||
// inizializzo appConf prima di tutto il resto...
|
||||
memLayer.ML.resetAppConf();
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
-9
@@ -5,15 +5,18 @@ using System.Web.Routing;
|
||||
|
||||
namespace MP_IO
|
||||
{
|
||||
public class WebApiApplication : System.Web.HttpApplication
|
||||
public class WebApiApplication : System.Web.HttpApplication
|
||||
{
|
||||
protected void Application_Start()
|
||||
{
|
||||
protected void Application_Start()
|
||||
{
|
||||
AreaRegistration.RegisterAllAreas();
|
||||
//GlobalConfiguration.Configure(WebApiConfig.Register);
|
||||
//FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
|
||||
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
||||
//BundleConfig.RegisterBundles(BundleTable.Bundles);
|
||||
}
|
||||
AreaRegistration.RegisterAllAreas();
|
||||
//GlobalConfiguration.Configure(WebApiConfig.Register);
|
||||
//FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
|
||||
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
||||
//BundleConfig.RegisterBundles(BundleTable.Bundles);
|
||||
|
||||
// avvio il metodo init...
|
||||
MP_Startup.Init();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,6 +154,7 @@
|
||||
<Compile Include="Alive.aspx.designer.cs">
|
||||
<DependentUpon>Alive.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App_Start\MP_Startup.cs" />
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="Controllers\BENCH.cs" />
|
||||
<Compile Include="Controllers\IOBController.cs" />
|
||||
|
||||
Reference in New Issue
Block a user