public WebPagesRouter(IHostingEnvironment hostingEnvironment, RazorViewToStringRenderer renderer, WebPagesOptions opts)
        {
            if (opts == null) throw new ArgumentNullException(nameof(opts));

            _hostingEnvironment = hostingEnvironment;
            _renderer = renderer;
            _opts = opts;
        }
Exemplo n.º 2
0
        public WebPagesRouter(IHostingEnvironment hostingEnvironment, RazorViewToStringRenderer renderer, WebPagesOptions opts)
        {
            if (opts == null)
            {
                throw new ArgumentNullException(nameof(opts));
            }

            _hostingEnvironment = hostingEnvironment;
            _renderer           = renderer;
            _opts = opts;
        }
Exemplo n.º 3
0
        public WebPagesRouter(IHostingEnvironment hostingEnvironment, RazorViewToStringRenderer renderer, WebPagesOptions opts, IRazorViewEngineFileProviderAccessor fileProviderAccessor)
        {
            if (opts == null)
            {
                throw new ArgumentNullException(nameof(opts));
            }

            _hostingEnvironment = hostingEnvironment;
            _renderer           = renderer;
            _opts = opts;
            _fileProviderAccessor = fileProviderAccessor;
        }