Пример #1
0
        public PluggableBuilder([NotNull] IServiceCollection services)
        {
            Requires.NotNull(services, nameof(services));

            Services = services;
            Options  = new PluggableOptions();
        }
Пример #2
0
 public PluggableRegistry(IPluggableServiceProvider pluggableServiceProvider, IOptions <PluggableOptions> options)
 {
     _pluggableServiceProvider = pluggableServiceProvider;
     _options = options.Value;
 }
Пример #3
0
 public PluggableServiceProvider(IServiceProvider serviceProvider, IOptions <PluggableOptions> options)
 {
     _serviceProvider = serviceProvider;
     _options         = options.Value;
 }