mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET Purview Middleware: Improve Background Job Runner Injection (#3256)
* Clean up background job dependency injection * Fix xml documentation grammar
This commit is contained in:
committed by
GitHub
Unverified
parent
b773830e4b
commit
a151f10cc2
@@ -41,7 +41,7 @@ public static class PurviewExtensions
|
||||
services.AddSingleton<PurviewWrapper>();
|
||||
services.AddSingleton(Channel.CreateBounded<BackgroundJobBase>(purviewSettings.PendingBackgroundJobLimit));
|
||||
services.AddSingleton<IChannelHandler, ChannelHandler>();
|
||||
services.AddSingleton<BackgroundJobRunner>();
|
||||
services.AddSingleton<IBackgroundJobRunner, BackgroundJobRunner>();
|
||||
ServiceProvider serviceProvider = services.BuildServiceProvider();
|
||||
|
||||
return serviceProvider.GetRequiredService<PurviewWrapper>();
|
||||
|
||||
Reference in New Issue
Block a user