Skip to content

Commit 1bb34a5

Browse files
authored
Merge pull request #403 from serverlessworkflow/fix-operator-options
Fixed the operator to use IOptionsMonitor instead of IOptions to access the OperatorOptions
2 parents 090fdb0 + 457b28c commit 1bb34a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operator/Synapse.Operator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
services.Configure<OperatorOptions>(context.Configuration);
3131
services.AddSingleton(provider =>
3232
{
33-
var options = provider.GetRequiredService<IOptions<OperatorOptions>>().Value;
33+
var options = provider.GetRequiredService<IOptionsMonitor<OperatorOptions>>().CurrentValue;
3434
return Options.Create(options.Runner);
3535
});
3636
services.AddLogging(builder =>

0 commit comments

Comments
 (0)