admin管理员组

文章数量:1406943

in my bootstrapping i enable unity debugging through Unity.DiagnosticExtensions.EnableDiagnostic(container as UnityContainer);
which basically just calls container.AddExtension(new Diagnostic()).

because of an unexpected unity behaviour i cannot leave it enabled, otherwise the application fails to complete its initialization.

I found no way of "disabling" it after it's been enabled.
This is mainly due to the inability of removing any extension after they've been added.

Is anyone aware of the existence of an extension-rollback for the diagnostic?
Maybe gifted to us as opensource by some pious developer?

The only other solution that came to mind is to catch the exception, ignore it and then run the bootstrap again with debug. But that isn't particularly easy in my architecture.

本文标签: