mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Changed all .GetService to .GetRequiredService because no service should be ever missing. However most of these should be removed in one of the future patches.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace NadekoBot.Coordinator
|
||||
services.AddGrpc();
|
||||
services.AddSingleton<CoordinatorRunner>();
|
||||
services.AddSingleton<IHostedService, CoordinatorRunner>(
|
||||
serviceProvider => serviceProvider.GetService<CoordinatorRunner>());
|
||||
serviceProvider => serviceProvider.GetRequiredService<CoordinatorRunner>());
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
|
Reference in New Issue
Block a user