From 6f28efc545f8a32118eea2ce0d8b76484d0af3df Mon Sep 17 00:00:00 2001
From: peterstone2017 <12449837+YunchuWang@users.noreply.github.com>
Date: Wed, 15 Jan 2025 16:57:13 -0800
Subject: [PATCH] remove validateonstart
---
src/Client/AzureManaged/Client.AzureManaged.csproj | 2 +-
.../AzureManaged/DurableTaskSchedulerClientExtensions.cs | 3 +--
.../AzureManaged/DurableTaskSchedulerWorkerExtensions.cs | 3 +--
src/Worker/AzureManaged/Worker.AzureManaged.csproj | 2 +-
4 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/Client/AzureManaged/Client.AzureManaged.csproj b/src/Client/AzureManaged/Client.AzureManaged.csproj
index 0b80078b..fc7bfba5 100644
--- a/src/Client/AzureManaged/Client.AzureManaged.csproj
+++ b/src/Client/AzureManaged/Client.AzureManaged.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/src/Client/AzureManaged/DurableTaskSchedulerClientExtensions.cs b/src/Client/AzureManaged/DurableTaskSchedulerClientExtensions.cs
index 290b09a8..0bba1c96 100644
--- a/src/Client/AzureManaged/DurableTaskSchedulerClientExtensions.cs
+++ b/src/Client/AzureManaged/DurableTaskSchedulerClientExtensions.cs
@@ -83,8 +83,7 @@ static void ConfigureSchedulerOptions(
builder.Services.AddOptions(builder.Name)
.Configure(initialConfig)
.Configure(additionalConfig ?? (_ => { }))
- .ValidateDataAnnotations()
- .ValidateOnStart();
+ .ValidateDataAnnotations();
builder.Services.TryAddEnumerable(
ServiceDescriptor.Singleton, ConfigureGrpcChannel>());
diff --git a/src/Worker/AzureManaged/DurableTaskSchedulerWorkerExtensions.cs b/src/Worker/AzureManaged/DurableTaskSchedulerWorkerExtensions.cs
index 71d7aa1e..2eec714c 100644
--- a/src/Worker/AzureManaged/DurableTaskSchedulerWorkerExtensions.cs
+++ b/src/Worker/AzureManaged/DurableTaskSchedulerWorkerExtensions.cs
@@ -83,8 +83,7 @@ static void ConfigureSchedulerOptions(
builder.Services.AddOptions(builder.Name)
.Configure(initialConfig)
.Configure(additionalConfig ?? (_ => { }))
- .ValidateDataAnnotations()
- .ValidateOnStart();
+ .ValidateDataAnnotations();
builder.Services.TryAddEnumerable(
ServiceDescriptor.Singleton, ConfigureGrpcChannel>());
diff --git a/src/Worker/AzureManaged/Worker.AzureManaged.csproj b/src/Worker/AzureManaged/Worker.AzureManaged.csproj
index 74df2840..cd2ca1f8 100644
--- a/src/Worker/AzureManaged/Worker.AzureManaged.csproj
+++ b/src/Worker/AzureManaged/Worker.AzureManaged.csproj
@@ -12,7 +12,7 @@
-
+