Skip to content

Commit 690321b

Browse files
fabiocavbrettsam
authored andcommitted
Ensuring service scope provider is registered from the correct scope
1 parent be21471 commit 690321b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebJobs.Script.WebHost/DependencyInjection/JobHostServiceProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ private Container BuildContainer(IServiceCollection descriptors)
6464

6565
container.Populate(descriptors);
6666
container.UseInstance<IServiceProvider>(this);
67+
container.UseInstance<IServiceScopeFactory>(this);
6768
container.UseInstance<JobHostServiceProvider>(this);
6869

6970
return container;

0 commit comments

Comments
 (0)