Example #1
0
        public TimedCycleChecker(
            IDiagnosticReporter diagnosticReporter,
            ICycleChecker cycleChecker
            )
        {
            if (diagnosticReporter is null)
            {
                throw new ArgumentNullException(nameof(diagnosticReporter));
            }

            if (cycleChecker is null)
            {
                throw new ArgumentNullException(nameof(cycleChecker));
            }
            _diagnosticReporter = diagnosticReporter;
            _cycleChecker       = cycleChecker;
        }
 public DependencyGraphSerializabilityAnalyzer(IDependencyGraphBuilder builder, ICycleChecker cycleChecker)
 {
     this._builder      = builder;
     this._cycleChecker = cycleChecker;
 }