We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faed558 commit 182bbf6Copy full SHA for 182bbf6
src/Foundatio.Extensions.Hosting/Jobs/ScheduledJobService.cs
@@ -32,7 +32,7 @@ public ScheduledJobService(IServiceProvider serviceProvider, ILoggerFactory logg
32
33
protected override async Task ExecuteAsync(CancellationToken stoppingToken) {
34
// TODO: Add more logging throughout
35
- var startupContext = _serviceProvider.GetRequiredService<StartupActionsContext>();
+ var startupContext = _serviceProvider.GetService<StartupActionsContext>();
36
if (startupContext != null) {
37
var result = await startupContext.WaitForStartupAsync(stoppingToken).AnyContext();
38
if (!result.Success) {
0 commit comments