Reacting to Dependency Injection changes

This commit is contained in:
Pranav K 2014-10-08 19:28:37 -07:00
parent 53eea70c06
commit da102032b5
1 changed files with 1 additions and 6 deletions

View File

@ -54,12 +54,7 @@ namespace Microsoft.AspNet.Hosting
// TODO: Do we expect this to be provide by the runtime eventually?
yield return describer.Singleton<ILoggerFactory, LoggerFactory>();
yield return new ServiceDescriptor
{
ServiceType = typeof(IContextAccessor<>),
ImplementationType = typeof(ContextAccessor<>),
Lifecycle = LifecycleKind.Scoped
};
yield return describer.Scoped(typeof(IContextAccessor<>), typeof(ContextAccessor<>));
if (PlatformHelper.IsMono)
{