Esempio n. 1
0
        public static IConfigurationRoot BuildConfiguration(
            this IWebHostEnvironment env,
            PlusConfigurationBuilderOptions options = null)
        {
            options ??= new PlusConfigurationBuilderOptions();

            if (options.BasePath.IsNullOrEmpty())
            {
                options.BasePath = env.ContentRootPath;
            }

            if (options.EnvironmentName.IsNullOrEmpty())
            {
                options.EnvironmentName = env.EnvironmentName;
            }

            return(ConfigurationHelper.BuildConfiguration(options));
        }
 public PlusApplicationCreationOptions([NotNull] IServiceCollection services)
 {
     Services      = Check.NotNull(services, nameof(services));
     PlugInSources = new PlugInSourceList();
     Configuration = new PlusConfigurationBuilderOptions();
 }