You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
var loggerFactory = new LoggerFactory();
loggerFactory.Dispose();
loggerFactory.AddProvider(new LoggerProviderWithUnmanagedResources());
loggerFactory.Dispose();
The Dispose() on each ILoggerProvider is never being called a second time because the private member _disposed in LoggerFactory prevents a second call. An ObjectDisposedException is expected here.
Worth considering?
The text was updated successfully, but these errors were encountered:
artganify
changed the title
'AddProvider' on ILoggerFactory should throw ObjectDisposedException after being disposed.
'AddProvider' on LoggerFactory should throw ObjectDisposedException after being disposed
May 9, 2016
Simple scenario:
The
Dispose()
on eachILoggerProvider
is never being called a second time because the private member_disposed
inLoggerFactory
prevents a second call. AnObjectDisposedException
is expected here.Worth considering?
The text was updated successfully, but these errors were encountered: