Reacting to Dependency Injection changes
This commit is contained in:
parent
53eea70c06
commit
da102032b5
|
|
@ -54,12 +54,7 @@ namespace Microsoft.AspNet.Hosting
|
||||||
// TODO: Do we expect this to be provide by the runtime eventually?
|
// TODO: Do we expect this to be provide by the runtime eventually?
|
||||||
yield return describer.Singleton<ILoggerFactory, LoggerFactory>();
|
yield return describer.Singleton<ILoggerFactory, LoggerFactory>();
|
||||||
|
|
||||||
yield return new ServiceDescriptor
|
yield return describer.Scoped(typeof(IContextAccessor<>), typeof(ContextAccessor<>));
|
||||||
{
|
|
||||||
ServiceType = typeof(IContextAccessor<>),
|
|
||||||
ImplementationType = typeof(ContextAccessor<>),
|
|
||||||
Lifecycle = LifecycleKind.Scoped
|
|
||||||
};
|
|
||||||
|
|
||||||
if (PlatformHelper.IsMono)
|
if (PlatformHelper.IsMono)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue