Exemplo n.º 1
0
        public static IConfigurationBuilder AddSandboxConfiguration(this IConfigurationBuilder configuration,
                                                                    Action <SandboxConfigurationOptions> options)
        {
            _ = options ?? throw new ArgumentNullException(nameof(options));
            var sandboxConfigurationOptions = new SandboxConfigurationOptions();

            options(sandboxConfigurationOptions);
            configuration.Add(new SandboxConfigurationSource(sandboxConfigurationOptions));
            return(configuration);
        }
Exemplo n.º 2
0
 public SandboxConfigurationSource(SandboxConfigurationOptions options)
 {
     Module           = options.Module;
     ConnectionString = options.ConnectionString;
 }