In StructureMap 2 I had something like this:
For<ILogger>().HybridHttpOrThreadLocalScoped().Use<Logger>();
When using Structure Map 3 should I use the following?
For<ILogger>().LifecycleIs<HybridLifecycle>().Use<Logger>();
Then I tried to apply the same change to:
For<IDispatcher>().Transient().Use<Dispatcher>();
And I wasn't able to use:
For<IDispatcher>().LifecycleIs<Transient>().Use<Dispatcher>();
Why?
Thank You, Miguel