Move startup validation to the options assembly (#88546)
authorSteve Harter <steveharter@users.noreply.github.com>
Wed, 12 Jul 2023 13:48:39 +0000 (08:48 -0500)
committerGitHub <noreply@github.com>
Wed, 12 Jul 2023 13:48:39 +0000 (08:48 -0500)
commit693eef6417353d45d126fa05365665bccf5b82d9
tree72e4f51d364c9991cafd8e1d677ea3e747ff4c60
parent1b2664df569cbe103811377b1a98e744f1afe159
Move startup validation to the options assembly (#88546)
13 files changed:
src/libraries/Microsoft.Extensions.Hosting/ref/Microsoft.Extensions.Hosting.cs
src/libraries/Microsoft.Extensions.Hosting/src/Internal/Host.cs
src/libraries/Microsoft.Extensions.Hosting/src/Microsoft.Extensions.Hosting.Forwards.cs [new file with mode: 0644]
src/libraries/Microsoft.Extensions.Hosting/src/ValidationHostedService.cs [deleted file]
src/libraries/Microsoft.Extensions.Hosting/src/ValidatorOptions.cs [deleted file]
src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/LifecycleTests.Start.cs
src/libraries/Microsoft.Extensions.Options/ref/Microsoft.Extensions.Options.cs
src/libraries/Microsoft.Extensions.Options/src/IStartupValidator.cs [new file with mode: 0644]
src/libraries/Microsoft.Extensions.Options/src/Microsoft.Extensions.Options.csproj
src/libraries/Microsoft.Extensions.Options/src/OptionsBuilderExtensions.cs [moved from src/libraries/Microsoft.Extensions.Hosting/src/OptionsBuilderExtensions.cs with 86% similarity]
src/libraries/Microsoft.Extensions.Options/src/StartupValidatorOptions.cs [new file with mode: 0644]
src/libraries/Microsoft.Extensions.Options/src/ValidateOnStart.cs [new file with mode: 0644]
src/libraries/Microsoft.Extensions.Options/tests/Microsoft.Extensions.Options.Tests/OptionsValidationTests.cs