internal TornLifestyleDiagnosticResult(Type serviceType, string description, Lifestyle lifestyle, Type implementationType, InstanceProducer[] affectedRegistrations) : base(serviceType, description, DiagnosticType.TornLifestyle, DiagnosticSeverity.Warning, CreateDebugValue(implementationType, lifestyle, affectedRegistrations)) { this.Lifestyle = lifestyle; this.ImplementationType = implementationType; this.AffectedRegistrations = new ReadOnlyCollection<InstanceProducer>(affectedRegistrations.ToList()); }
internal AmbiguousLifestylesDiagnosticResult(Type serviceType, string description, Lifestyle[] lifestyles, Type implementationType, InstanceProducer diagnosedProducer, InstanceProducer[] conflictingProducers) : base(serviceType, description, DiagnosticType.AmbiguousLifestyles, DiagnosticSeverity.Warning, CreateDebugValue(implementationType, lifestyles, conflictingProducers)) { this.Lifestyles = new ReadOnlyCollection<Lifestyle>(lifestyles.ToList()); this.ImplementationType = implementationType; this.DiagnosedRegistration = diagnosedProducer; this.ConflictingRegistrations = new ReadOnlyCollection<InstanceProducer>(conflictingProducers.ToList()); }