Skip to content

Commit d289c10

Browse files
committed
fix
1 parent 522d4b0 commit d289c10

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Extensions/Azure/DurableTaskSchedulerExtensions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ public static void UseDurableTaskScheduler(
122122
var connectionOptions = DurableTaskSchedulerOptions.FromConnectionString(connectionString);
123123

124124
builder.Services.AddOptions<DurableTaskSchedulerOptions>(builder.Name)
125+
.Configure(options =>
126+
{
127+
options.EndpointAddress = connectionOptions.EndpointAddress;
128+
options.TaskHubName = connectionOptions.TaskHubName;
129+
options.Credential = connectionOptions.Credential;
130+
})
125131
.Configure(configure ?? (_ => { }))
126132
.ValidateDataAnnotations()
127133
.ValidateOnStart();

0 commit comments

Comments
 (0)