diff --git a/MP-IO/App_Start/RouteConfig.cs b/MP-IO/App_Start/RouteConfig.cs index 10fd6aa3..0e433545 100644 --- a/MP-IO/App_Start/RouteConfig.cs +++ b/MP-IO/App_Start/RouteConfig.cs @@ -4,21 +4,25 @@ using System.Web.Routing; namespace MP_IO { - public class RouteConfig - { - public static void RegisterRoutes(RouteCollection routes) + public class RouteConfig { - var settings = new FriendlyUrlSettings(); - settings.AutoRedirectMode = RedirectMode.Permanent; - routes.EnableFriendlyUrls(settings); - // aggiungo route x gestione controller IOB - routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + #region Public Methods - routes.MapRoute( - name: "Default", - url: "{controller}/{action}/{id}", - defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } - ); + public static void RegisterRoutes(RouteCollection routes) + { + var settings = new FriendlyUrlSettings(); + settings.AutoRedirectMode = RedirectMode.Permanent; + routes.EnableFriendlyUrls(settings); + // aggiungo route x gestione controller IOB + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + + routes.MapRoute( + name: "Default", + url: "{controller}/{action}/{id}", + defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } + ); + } + + #endregion Public Methods } - } -} +} \ No newline at end of file diff --git a/MP-IO/Controllers/HomeController.cs b/MP-IO/Controllers/HomeController.cs new file mode 100644 index 00000000..4e326cfc --- /dev/null +++ b/MP-IO/Controllers/HomeController.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace MP_IO.Controllers +{ + public class HomeController : Controller + { + #region Public Methods + + // GET: Home + public RedirectResult Index() + { + return Redirect("status"); + } + + #endregion Public Methods + } +} \ No newline at end of file diff --git a/MP-IO/Core/Compression/Snappy/lib/win/snappy32.dll b/MP-IO/Core/Compression/Snappy/lib/win/snappy32.dll new file mode 100644 index 00000000..afc82ca4 Binary files /dev/null and b/MP-IO/Core/Compression/Snappy/lib/win/snappy32.dll differ diff --git a/MP-IO/Core/Compression/Snappy/lib/win/snappy64.dll b/MP-IO/Core/Compression/Snappy/lib/win/snappy64.dll new file mode 100644 index 00000000..36cd5fe7 Binary files /dev/null and b/MP-IO/Core/Compression/Snappy/lib/win/snappy64.dll differ diff --git a/MP-IO/Core/Compression/Zstandard/lib/win/libzstd.dll b/MP-IO/Core/Compression/Zstandard/lib/win/libzstd.dll new file mode 100644 index 00000000..e669123c Binary files /dev/null and b/MP-IO/Core/Compression/Zstandard/lib/win/libzstd.dll differ diff --git a/MP-IO/Default.aspx b/MP-IO/Default.aspx index d810c51c..911eb3a0 100644 --- a/MP-IO/Default.aspx +++ b/MP-IO/Default.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="MP_IO.Default" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MP_IO.Default" %> @@ -23,4 +23,4 @@ - + \ No newline at end of file diff --git a/MP-IO/Default.aspx.cs b/MP-IO/Default.aspx.cs index 39699e05..43e2933d 100644 --- a/MP-IO/Default.aspx.cs +++ b/MP-IO/Default.aspx.cs @@ -4,14 +4,19 @@ using System.Web.UI; namespace MP_IO { - public partial class Default : System.Web.UI.Page - { - protected void Page_Load(object sender, EventArgs e) + public partial class Default : System.Web.UI.Page { - if (!Page.IsPostBack) - { - lblVers.Text = string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version); - } + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + lblVers.Text = string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version); + Response.Redirect("status"); + } + } + + #endregion Protected Methods } - } } \ No newline at end of file diff --git a/MP-IO/MP-IO.csproj b/MP-IO/MP-IO.csproj index c844eca9..cff72292 100644 --- a/MP-IO/MP-IO.csproj +++ b/MP-IO/MP-IO.csproj @@ -142,8 +142,8 @@ ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll - - ..\packages\Microsoft.AspNet.WebApi.Client.5.2.6\lib\net45\System.Net.Http.Formatting.dll + + ..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll @@ -194,11 +194,11 @@ ..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.Helpers.dll - - ..\packages\Microsoft.AspNet.WebApi.Core.5.2.6\lib\net45\System.Web.Http.dll + + ..\packages\Microsoft.AspNet.WebApi.Core.5.2.7\lib\net45\System.Web.Http.dll - - ..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.6\lib\net45\System.Web.Http.WebHost.dll + + ..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.7\lib\net45\System.Web.Http.WebHost.dll ..\packages\Microsoft.AspNet.Mvc.5.2.7\lib\net45\System.Web.Mvc.dll @@ -230,7 +230,7 @@ - + Always @@ -307,15 +307,16 @@ + - - default.aspx + + Default.aspx ASPXCodeBehind - - default.aspx + + Default.aspx enabled.aspx diff --git a/MP-IO/MP-IO.csproj.user b/MP-IO/MP-IO.csproj.user index 8f155350..e85dec40 100644 --- a/MP-IO/MP-IO.csproj.user +++ b/MP-IO/MP-IO.csproj.user @@ -11,8 +11,8 @@ Debug|Any CPU - ApiControllerWithActionsScaffolder - root/Controller + MvcControllerEmptyScaffolder + root/Common/MVC/Controller 600 True False diff --git a/MP-IO/Web.config b/MP-IO/Web.config index ebcd0a54..d96b1284 100644 --- a/MP-IO/Web.config +++ b/MP-IO/Web.config @@ -71,65 +71,41 @@ - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - + + - - - - - - - - - + + + + + + + + + @@ -140,8 +116,9 @@ - + + diff --git a/MP-IO/packages.config b/MP-IO/packages.config index c48ebbe6..537f460b 100644 --- a/MP-IO/packages.config +++ b/MP-IO/packages.config @@ -14,13 +14,13 @@ - - - - - - - + + + + + + +