1

Closed

Allows suppressing diagnostic warnings

description

Related to this (closed) work item.

Allow diagnostic warnings to be suppressed on a per-registration basis. Example:
Registration registration = 
    Lifestyle.Transient.CreateRegistration(typeof(ServiceImpl), container);

registration.SuppressDiagnosticWarning(DiagnosticType.DisposableTransientComponent);

container.AddRegistration(typeof(IService), registration);
Main use case for allowing warnings to be suppressed programmatically on a per-registration basis is this bug report. Both the MVC and Web API integration packages need to be able to suppress the DisposableTransientComponent warning on controller registrations.
Closed Apr 10, 2015 at 2:56 PM by dot_NET_Junkie

comments

dot_NET_Junkie wrote Mar 11, 2015 at 7:40 PM

Fixed in changeset 137fdcacd895bc623ca381e1fc0db8e4ddfb8522