Skip to content

Commit

Permalink
remove validateonstart
Browse files Browse the repository at this point in the history
  • Loading branch information
YunchuWang committed Jan 16, 2025
1 parent 5b4f648 commit 6f28efc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Client/AzureManaged/Client.AzureManaged.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.13.1" />
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" Version="7.0.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.67.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ static void ConfigureSchedulerOptions(
builder.Services.AddOptions<DurableTaskSchedulerClientOptions>(builder.Name)
.Configure(initialConfig)
.Configure(additionalConfig ?? (_ => { }))
.ValidateDataAnnotations()
.ValidateOnStart();
.ValidateDataAnnotations();

builder.Services.TryAddEnumerable(
ServiceDescriptor.Singleton<IConfigureOptions<GrpcDurableTaskClientOptions>, ConfigureGrpcChannel>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ static void ConfigureSchedulerOptions(
builder.Services.AddOptions<DurableTaskSchedulerWorkerOptions>(builder.Name)
.Configure(initialConfig)
.Configure(additionalConfig ?? (_ => { }))
.ValidateDataAnnotations()
.ValidateOnStart();
.ValidateDataAnnotations();

builder.Services.TryAddEnumerable(
ServiceDescriptor.Singleton<IConfigureOptions<GrpcDurableTaskWorkerOptions>, ConfigureGrpcChannel>());
Expand Down
2 changes: 1 addition & 1 deletion src/Worker/AzureManaged/Worker.AzureManaged.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.13.1" />
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" Version="7.0.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.67.0" />
</ItemGroup>

Expand Down

0 comments on commit 6f28efc

Please sign in to comment.