public DocumentsController(AccessManager amgr, DownloadFolder downloader, IOptions <Config> options, PrettyTextFile prettifier) { var vfs = amgr.GetReadOnlyFileSystem(); this._outputFiles = new OutputFiles(vfs); this._imageRatio = options.Value.ImageRatio; this._downloader = downloader; this._prettifier = prettifier; }
public ArticlesController(AccessManager amgr, PrettyTextFile prettifier, IOptions <Config> options) { var vfs = amgr.GetReadOnlyFileSystem(); _outputFiles = new OutputFiles(vfs); _imageRatio = options.Value.ImageRatio; this._prettifier = prettifier; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, PrettyTextFile prettifier) { if (env.IsDevelopment()) { app.UseBrowserLink(); app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Error"); } app.UseStaticFiles(); app.UseMvc(); }