RegistrationSuppressDiagnosticWarning Method

Simple Injector
Suppressing the supplied DiagnosticType for the given registration.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public void SuppressDiagnosticWarning(
	DiagnosticType type,
	string justification
)

Parameters

type
Type: SimpleInjector.DiagnosticsDiagnosticType
The DiagnosticType.
justification
Type: SystemString
The justification of why the warning must be suppressed.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when justification is a null reference.
ArgumentExceptionThrown when either justification is an empty string or when type is not a valid value of DiagnosticType.
See Also

Reference