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

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

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

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