Remove ambient scope stack from httpcontext.items. (#12539)
This change makes it easier to use service calls in parallel whilst a httpcontext is available.
This commit is contained in:
@@ -71,13 +71,14 @@ namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Scoping
|
||||
sqlContext.Setup(x => x.SqlSyntax).Returns(syntaxProviderMock.Object);
|
||||
|
||||
return new ScopeProvider(
|
||||
new AmbientScopeStack(),
|
||||
new AmbientScopeContextStack(),
|
||||
lockingMechanismFactory.Object,
|
||||
databaseFactory.Object,
|
||||
fileSystems,
|
||||
new TestOptionsMonitor<CoreDebugSettings>(new CoreDebugSettings()),
|
||||
mediaFileManager,
|
||||
loggerFactory,
|
||||
Mock.Of<IRequestCache>(),
|
||||
Mock.Of<IEventAggregator>());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user