Created
February 24, 2017 11:50
-
-
Save Antaris/11770ce7289e46031bd9cc5bd49a35a9 to your computer and use it in GitHub Desktop.
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
public class DynamicRouter : IRouter | |
{ | |
private IRouter _router; | |
public DynamicRouter(IRouter router) | |
{ | |
_router = router; | |
} | |
public Task RouteAsync(RouteContext context) | |
=> _router.RouteAsync(context); | |
public VirtualPathData GetVirtualPathData(VirtualPathContext context) | |
=> _router.GetVirtualPathData(context); | |
public void SetRouter(IRouter router) | |
{ | |
_router = router; | |
} | |
} |
Author
Antaris
commented
Feb 24, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment