Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YunchuWang committed Jan 11, 2025
1 parent 522d4b0 commit d289c10
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Extensions/Azure/DurableTaskSchedulerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ public static void UseDurableTaskScheduler(
var connectionOptions = DurableTaskSchedulerOptions.FromConnectionString(connectionString);

builder.Services.AddOptions<DurableTaskSchedulerOptions>(builder.Name)
.Configure(options =>
{
options.EndpointAddress = connectionOptions.EndpointAddress;
options.TaskHubName = connectionOptions.TaskHubName;
options.Credential = connectionOptions.Credential;
})
.Configure(configure ?? (_ => { }))
.ValidateDataAnnotations()
.ValidateOnStart();
Expand Down

0 comments on commit d289c10

Please sign in to comment.