Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
655 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
using System.Web; | ||
using System.Web.Routing; | ||
|
||
namespace RouteDebug { | ||
public class DebugRouteHandler : IRouteHandler { | ||
public IHttpHandler GetHttpHandler(RequestContext requestContext) { | ||
return new DebugHttpHandler { }; | ||
namespace RouteDebug | ||
{ | ||
public class DebugRouteHandler : IRouteHandler | ||
{ | ||
public IHttpHandler GetHttpHandler(RequestContext requestContext) | ||
{ | ||
return new DebugHttpHandler(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
src/RouteMagic.Mvc/RouteHandlers/DependencyResolvingRouteHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
using System.Web; | ||
using System.Web.Mvc; | ||
|
||
namespace RouteMagic.RouteHandlers { | ||
public class DependencyResolvingRouteHandler<THandler> : HttpHandlerRouteHandler<THandler> where THandler : IHttpHandler { | ||
public DependencyResolvingRouteHandler() : base(requestContext => DependencyResolver.Current.GetService<THandler>()) { | ||
namespace RouteMagic.RouteHandlers | ||
{ | ||
public class DependencyResolvingRouteHandler<THandler> : HttpHandlerRouteHandler<THandler> where THandler : IHttpHandler | ||
{ | ||
public DependencyResolvingRouteHandler() | ||
: base(requestContext => DependencyResolver.Current.GetService<THandler>()) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.