mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
PERF: CreateWorkContextScope shouldn't call InstancePerMatchingLifetimeScope
http://orchard.codeplex.com/workitem/16869 CreateWorkContextScope now creates a child container with no alteration to the component registry WorkContextModule added to group the related set of component registrations HttpContextBase still injectable, but it's exposed in a way that doesn't require updating the child container per request --HG-- branch : perf
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Orchard.Core.Tests.Routable.Services {
|
||||
builder.RegisterInstance(new Mock<INotifier>().Object);
|
||||
builder.RegisterInstance(new Mock<IContentDisplay>().Object);
|
||||
builder.RegisterType<StubHttpContextAccessor>().As<IHttpContextAccessor>();
|
||||
builder.RegisterType<DefaultWorkContextAccessor>().As<IWorkContextAccessor>();
|
||||
builder.RegisterType<WorkContextAccessor>().As<IWorkContextAccessor>();
|
||||
builder.RegisterType<OrchardServices>().As<IOrchardServices>();
|
||||
|
||||
builder.RegisterType<ThingHandler>().As<IContentHandler>();
|
||||
|
Reference in New Issue
Block a user