Beispiel #1
0
 internal DependencyChecker(IEnumerable <IDependencyCheck> checks, DependencyCheckerOptions options, ILogger <DependencyChecker> logger)
 {
     _checks  = new List <IDependencyCheck>(checks);
     _options = options;
     _logger  = logger;
 }
 public DependencyCheckerBuilder(IServiceProvider provider, DependencyCheckerOptions options)
 {
     ServiceProvider = provider ?? throw new ArgumentNullException(nameof(provider));
     Options         = options ?? throw new ArgumentNullException(nameof(options));
     Logger          = ServiceProvider.GetRequiredService <ILogger <DependencyChecker> >();
 }