Beispiel #1
0
        public static IApplicationBuilder UseAngular(this IApplicationBuilder builder, Action <AngularRouteCollection> routes)
        {
            var rc = new AngularRouteCollection();

            routes(rc);

            return(builder.UseMiddleware <AngularRequestMiddleware>(rc));
        }
Beispiel #2
0
 public AngularRequestMiddleware(RequestDelegate next, AngularRouteCollection routes)
 {
     _next   = next;
     _routes = routes;
 }