public AngularServerMiddleware(AppFunc next, AngularServerOptions options)
        {
            _next = next;
            _options = options;

            _innerMiddleware = new StaticFileMiddleware(next, options.FileServerOptions.StaticFileOptions);
        }
예제 #2
0
        public Html5Middleware(AppFunc next, HTML5ServerOptions options)
        {
            _next = next;
            _options = options;

            _innerMiddleware = new StaticFileMiddleware(next, options.FileServerOptions.StaticFileOptions);
        }
 public AngularServerMiddleware(OwinMiddleware next, AngularServerOptions options) : base(next)
 {
     _options = options;
     _innerMiddleware = new StaticFileMiddleware(async objects => await Next.Invoke(new OwinContext(objects)),
         options.FileServerOptions.StaticFileOptions);
 }