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

            _hostingEnvironment = hostingEnvironment;
            _renderer = renderer;
            _opts = opts;
        }
Esempio 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;
        }
Esempio 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;
        }