Open mdmoura opened 9 years ago
Hello,
When I added the following on DefaultRegistry:
For<IExample>().HttpContextScoped().Use<Example>();
I get the following error when using container.AssertConfigurationIsValid():
An exception of type 'System.InvalidOperationException' occurred in System.Core.dll but was not handled in user code.
I know that if I remove HttpContextScoped() it works. Why is that?
Thank You
With SM3 you don't use HttpContextScoped. HttpContextScopedis replaced with the use of nested containers which SM.MVC5 implements for us. So just use For..Use with default Transient lifecycle.
HttpContextScoped
For..Use
Hello,
When I added the following on DefaultRegistry:
I get the following error when using container.AssertConfigurationIsValid():
I know that if I remove HttpContextScoped() it works. Why is that?
Thank You