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
Using Simple Injector and lifestyle scoping (so it handles disposables inside the container) triggers CC0022 when the class is registered using a delegate:
container.Register<IDisposableIntr>(() => new DisposableImpl(), Lifestyle.Scoped);
This causes CC0022 to encounter an error and get disabled since it can't generate a solution. The warning is fine and I can disable it with a pragma declaration, but I figured the error probably shouldn't occur!
The text was updated successfully, but these errors were encountered:
Using Simple Injector and lifestyle scoping (so it handles disposables inside the container) triggers CC0022 when the class is registered using a delegate:
This causes CC0022 to encounter an error and get disabled since it can't generate a solution. The warning is fine and I can disable it with a pragma declaration, but I figured the error probably shouldn't occur!
The text was updated successfully, but these errors were encountered: