Skip to content

Instantly share code, notes, and snippets.

@d2funlife
d2funlife / MvcHandler.cs
Created September 16, 2017 19:12
MvcHandler
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Web.Mvc.Async;
using System.Web.Mvc.Properties;
using System.Web.Routing;
@d2funlife
d2funlife / MvcRouteHandler.cs
Created September 16, 2017 19:10
MvcRouteHandler
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Web.Mvc.Properties;
using System.Web.Routing;
using System.Web.SessionState;
namespace System.Web.Mvc
{
public class MvcRouteHandler : IRouteHandler
{
@d2funlife
d2funlife / Global.asax.cs
Created September 12, 2017 20:08
HTTP приложение точки интеграции / HTTP application integration points
[assembly: PreApplicationStartMethod(typeof(MvcApplication), "PreStartApp")]
namespace Sample
{
public class MvcApplication : System.Web.HttpApplication
{
public static void PreStartApp()
{
//code
}
protected void Application_Start()