示例#1
0
 public ElFinderController(IAssetRepository assetRepository, IConfiguration configuration,
                           HierarchicalResourceOptions options)
 {
     _assetRepository = assetRepository;
     _configuration   = configuration;
     _options         = options;
 }
示例#2
0
        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();
        }