public ElFinderController(IAssetRepository assetRepository, IConfiguration configuration, HierarchicalResourceOptions options) { _assetRepository = assetRepository; _configuration = configuration; _options = options; }
public Startup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true); builder.AddEnvironmentVariables(); Configuration = builder.Build(); _options = new HierarchicalResourceOptions(); }