Skip to content

API review of Steeltoe.Common #1334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 30 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
937ca06
Trim trailing whitespace
bart-vmware Jul 17, 2024
66b84fd
Reduce public API surface of Common, annotate for NRT
bart-vmware Jul 31, 2024
c3fba55
Use ObjectDisposedException.ThrowIf
bart-vmware Aug 1, 2024
fc11f63
Use ArgumentException.ThrowIf* instead of ArgumentGuard, and review u…
bart-vmware Aug 5, 2024
18208c9
Enable more NRT in Common
bart-vmware Aug 5, 2024
2ce2095
IApplicationInstanceInfo: Remove unused code
bart-vmware Aug 7, 2024
429e6ca
Remove ConfigureReloadableOptions (same as OptionsBuilder.BindConfigu…
bart-vmware Aug 8, 2024
eea51a0
Fixes and test coverage for registering option configurers
bart-vmware Aug 8, 2024
5ead4bf
Refactor IApplicationInstanceInfo
bart-vmware Aug 9, 2024
9353c8d
Enable NRT project-wide in Common
bart-vmware Aug 9, 2024
1e5f728
Enable NRT solution-wide
bart-vmware Aug 9, 2024
fd5f956
Cleanup CloudFoundryServicesOptions
bart-vmware Aug 13, 2024
2656e78
Make public extension methods return their 'this' parameter, unify do…
bart-vmware Aug 13, 2024
ee86ae7
Rename CredentialConverter to CredentialsConverter
bart-vmware Aug 13, 2024
913c8a6
Move CertificateOptions from Steeltoe.Common to Steeltoe.Common.Certi…
bart-vmware Aug 13, 2024
f5fd3f3
Move Json converters to Eureka
bart-vmware Aug 13, 2024
d8d2cef
Cleanup WindowsNetworkFileShare
bart-vmware Aug 13, 2024
c6bf3f1
Update visibility of types
bart-vmware Aug 14, 2024
fee493b
Rename Options directory to Configuration to avoid clash with built-i…
bart-vmware Aug 14, 2024
54c09d2
Fixed: fallback to default certificate, removed SetCertificateName (u…
bart-vmware Aug 14, 2024
01a016d
Simplify the API to add info contributors similar to health contribut…
bart-vmware Aug 14, 2024
8200bb3
Remove redundant type arguments
bart-vmware Aug 14, 2024
b9e3e6c
Turn on analyzers for Common
bart-vmware Aug 14, 2024
03d3ece
Add tests for HostBuilderWrapper
bart-vmware Aug 14, 2024
7be15fc
Rename test classes to singular form
bart-vmware Aug 14, 2024
9006cce
Fix errors in release build
bart-vmware Aug 14, 2024
290b91b
Empty commit to trigger cibuild
bart-vmware Aug 15, 2024
e344210
Review feedback: pass Options.DefaultName
bart-vmware Aug 16, 2024
3aefd43
Review feedback: rename variable
bart-vmware Aug 16, 2024
1d83252
Review feedback: Pass logger through
bart-vmware Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ assignees: ''
---

## Describe the bug
A clear and concise description of the bug.
A clear and concise description of the bug.

## Steps to reproduce
## Steps to reproduce
Steps to reproduce the behavior:
1.
2.
Expand All @@ -20,9 +20,9 @@ A clear and concise description of what you expected to happen.

## Environment (please complete the following information):
- Steeltoe Version [e.g. 2.3.0]
- Platform: [e.g. Cloud Foundry, Azure, etc.)
- Platform: [e.g. Cloud Foundry, Azure, etc.)
- OS: [e.g. Windows, Linux, Mac OSX]
- .NET Version [e.g. .NET Core 2.1.0, .NET Framework 4.7.1, etc.]
- .NET Version [e.g. .NET Core 2.1.0, .NET Framework 4.7.1, etc.]
- Any other library versions to note

## Screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assignees: ''
_Enter your question or feedback here_

## Environment (please complete the following information):
- .NET Version [e.g. .NET Core 3.1.4, .NET Framework 4.7.1, etc.]
- .NET Version [e.g. .NET Core 3.1.4, .NET Framework 4.7.1, etc.]
- Steeltoe Version [e.g. 3.0.1]

## Additional context or links
Expand Down
4 changes: 2 additions & 2 deletions build/pr-code-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
displayName: Push changes
condition: and(succeeded(), eq(variables['hasChangesToCommit'], 'True'))
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
targetType: 'inline'
script: |
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
$statusMessage = "<samp>Code cleanup was canceled, no changes were pushed.</samp>"
}
elseif ($env:AGENT_JOBSTATUS -eq "Failed") {
$url = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
$url = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
$statusMessage = "<samp>Code cleanup failed to reformat and push changes.</samp><p>View details [here]($url).</p>"
}
else {
Expand Down
2 changes: 1 addition & 1 deletion build/sign-packages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $appSettings = Join-Path $currentDirectory 'appsettings.json'
$nupkgs = Get-ChildItem $env:ArtifactDirectory/Steeltoe*.*nupkg -recurse | Select-Object -ExpandProperty FullName

foreach ($nupkg in $nupkgs) {
./SignClient 'sign' -c $appSettings -i $nupkg -r $env:SignClientUser -s $env:SignClientSecret -n 'Steeltoe' -d 'Steeltoe' -u 'https://github.com/SteeltoeOSS'
./SignClient 'sign' -c $appSettings -i $nupkg -r $env:SignClientUser -s $env:SignClientSecret -n 'Steeltoe' -d 'Steeltoe' -u 'https://github.com/SteeltoeOSS'
}

Write-Host "Sign-packages completed."
2 changes: 1 addition & 1 deletion build/templates/consolidate-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
displayName: Publish code coverage to Azure DevOps
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: $(Build.ArtifactStagingDirectory)/CodeCoverage/Cobertura.xml
summaryFileLocation: $(Build.ArtifactStagingDirectory)/CodeCoverage/Cobertura.xml
4 changes: 2 additions & 2 deletions build/verify-code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:
# We are in detached head (the merge result), so there's no need to account for an out-of-date PR.
$baseCommitHash = git rev-parse origin/$env:SYSTEM_PULLREQUEST_TARGETBRANCH
if ($LastExitCode -ne 0) { throw "Command 'git rev-parse (1)' failed with exit code $LastExitCode." }

$headCommitHash = git rev-parse HEAD
if ($LastExitCode -ne 0) { throw "Command 'git rev-parse (2)' failed with exit code $LastExitCode." }

Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request."
dotnet regitlint -s src/Steeltoe.All.sln --print-command --skip-tool-check --max-runs=5 --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="Steeltoe Full Cleanup" --jb --properties:Configuration=Release --jb --properties:NuGetAudit=false --jb --verbosity=WARN --fail-on-diff --print-diff -f commits -a $headCommitHash -b $baseCommitHash
}
4 changes: 2 additions & 2 deletions coverlet.runsettings
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<DataCollectors>
<DataCollector friendlyName="XPlat Code Coverage">
<Configuration>
<Format>opencover</Format>
<Format>opencover</Format>
<Exclude>[*.Test*]*,[*]Microsoft.Diagnostics*</Exclude>
<Include>[Steeltoe.*]*</Include>
<ExcludeByAttribute>Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute</ExcludeByAttribute>
Expand All @@ -15,4 +15,4 @@
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
</RunSettings>
15 changes: 1 addition & 14 deletions shared-package.props
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,11 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(SourceLinkGitHubVersion)" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="$(PublicApiAnalyzersVersion)" PrivateAssets="All" />
</ItemGroup>

<Target Name="ValidatePackage" AfterTargets="BeforeBuild">
<Error Text="The 'Description' property must be set for packable project '$(MSBuildProjectName)'." Condition="'$(Description)' == ''" />
<Error Text="The 'PackageTags' property must be set for packable project '$(MSBuildProjectName)'." Condition="'$(PackageTags)' == ''" />
</Target>

<ItemGroup Condition="!$(MSBuildProjectName.StartsWith('Steeltoe.Common'))">
<!--
Remove the condition above after public API review of Steeltoe.Common.
-->
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="$(PublicApiAnalyzersVersion)" PrivateAssets="All" />
</ItemGroup>

<PropertyGroup Condition="$(MSBuildProjectName.StartsWith('Steeltoe.Common'))">
<!--
Remove the condition above after public API review of Steeltoe.Common.
-->
<NoWarn>$(NoWarn);SA1401;S1168;S2360;S3900;S3956;S4004;S4023</NoWarn>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions shared.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
Expand Down
9 changes: 5 additions & 4 deletions src/Bootstrap/src/AutoConfiguration/BootstrapScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ internal sealed class BootstrapScanner

public BootstrapScanner(HostBuilderWrapper wrapper, IReadOnlySet<string> assemblyNamesToExclude, ILoggerFactory loggerFactory)
{
ArgumentGuard.NotNull(wrapper);
ArgumentGuard.NotNull(assemblyNamesToExclude);
ArgumentGuard.NotNull(loggerFactory);
ArgumentNullException.ThrowIfNull(wrapper);
ArgumentNullException.ThrowIfNull(assemblyNamesToExclude);
ArgumentGuard.ElementsNotNullOrWhiteSpace(assemblyNamesToExclude);
ArgumentNullException.ThrowIfNull(loggerFactory);

_wrapper = wrapper;
_loader = new AssemblyLoader(assemblyNamesToExclude);
Expand All @@ -61,7 +62,7 @@ public void ConfigureSteeltoe()
{
if (_loggerFactory is IBootstrapLoggerFactory)
{
BootstrapLoggerHostedService.Register(_loggerFactory, _wrapper);
BootstrapLoggerHostedService.Register(_wrapper);
}

if (!WireIfLoaded(WireConfigServer, SteeltoeAssemblyNames.ConfigurationConfigServer))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static class HostApplicationBuilderExtensions
/// The <see cref="IHostApplicationBuilder" /> to configure.
/// </param>
/// <returns>
/// The incoming <see cref="IHostApplicationBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder builder)
{
Expand All @@ -40,7 +40,7 @@ public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder b
/// The set of assembly names to exclude from autoconfiguration. For ease of use, select from the constants in <see cref="SteeltoeAssemblyNames" />.
/// </param>
/// <returns>
/// The incoming <see cref="IHostApplicationBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder builder, IReadOnlySet<string> assemblyNamesToExclude)
{
Expand All @@ -58,7 +58,7 @@ public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder b
/// write only to the console until logging is fully initialized.
/// </param>
/// <returns>
/// The incoming <see cref="IHostApplicationBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder builder, ILoggerFactory loggerFactory)
{
Expand All @@ -79,14 +79,15 @@ public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder b
/// write only to the console until logging is fully initialized.
/// </param>
/// <returns>
/// The incoming <see cref="IHostApplicationBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder builder, IReadOnlySet<string> assemblyNamesToExclude,
ILoggerFactory loggerFactory)
{
ArgumentGuard.NotNull(builder);
ArgumentGuard.NotNull(assemblyNamesToExclude);
ArgumentGuard.NotNull(loggerFactory);
ArgumentNullException.ThrowIfNull(builder);
ArgumentNullException.ThrowIfNull(assemblyNamesToExclude);
ArgumentGuard.ElementsNotNullOrWhiteSpace(assemblyNamesToExclude);
ArgumentNullException.ThrowIfNull(loggerFactory);

HostBuilderWrapper wrapper = HostBuilderWrapper.Wrap(builder);

Expand Down
15 changes: 8 additions & 7 deletions src/Bootstrap/src/AutoConfiguration/HostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static class HostBuilderExtensions
/// The <see cref="IHostBuilder" /> to configure.
/// </param>
/// <returns>
/// The incoming <see cref="IHostBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IHostBuilder AddSteeltoe(this IHostBuilder builder)
{
Expand All @@ -40,7 +40,7 @@ public static IHostBuilder AddSteeltoe(this IHostBuilder builder)
/// The set of assembly names to exclude from autoconfiguration. For ease of use, select from the constants in <see cref="SteeltoeAssemblyNames" />.
/// </param>
/// <returns>
/// The incoming <see cref="IHostBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IHostBuilder AddSteeltoe(this IHostBuilder builder, IReadOnlySet<string> assemblyNamesToExclude)
{
Expand All @@ -58,7 +58,7 @@ public static IHostBuilder AddSteeltoe(this IHostBuilder builder, IReadOnlySet<s
/// write only to the console until logging is fully initialized.
/// </param>
/// <returns>
/// The incoming <see cref="IHostBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IHostBuilder AddSteeltoe(this IHostBuilder builder, ILoggerFactory loggerFactory)
{
Expand All @@ -79,13 +79,14 @@ public static IHostBuilder AddSteeltoe(this IHostBuilder builder, ILoggerFactory
/// write only to the console until logging is fully initialized.
/// </param>
/// <returns>
/// The incoming <see cref="IHostBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IHostBuilder AddSteeltoe(this IHostBuilder builder, IReadOnlySet<string> assemblyNamesToExclude, ILoggerFactory loggerFactory)
{
ArgumentGuard.NotNull(builder);
ArgumentGuard.NotNull(assemblyNamesToExclude);
ArgumentGuard.NotNull(loggerFactory);
ArgumentNullException.ThrowIfNull(builder);
ArgumentNullException.ThrowIfNull(assemblyNamesToExclude);
ArgumentGuard.ElementsNotNullOrWhiteSpace(assemblyNamesToExclude);
ArgumentNullException.ThrowIfNull(loggerFactory);

HostBuilderWrapper wrapper = HostBuilderWrapper.Wrap(builder);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<Description>Package for automatically configuring Steeltoe packages that have separately been added to a project.</Description>
<PackageTags>Autoconfiguration;automatic configuration;application bootstrapping</PackageTags>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
</PropertyGroup>

<Import Project="..\..\..\..\shared.props" />
Expand Down
15 changes: 8 additions & 7 deletions src/Bootstrap/src/AutoConfiguration/WebHostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static class WebHostBuilderExtensions
/// The <see cref="IWebHostBuilder" /> to configure.
/// </param>
/// <returns>
/// The incoming <see cref="IWebHostBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder)
{
Expand All @@ -40,7 +40,7 @@ public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder)
/// The set of assembly names to exclude from autoconfiguration. For ease of use, select from the constants in <see cref="SteeltoeAssemblyNames" />.
/// </param>
/// <returns>
/// The incoming <see cref="IWebHostBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder, IReadOnlySet<string> assemblyNamesToExclude)
{
Expand All @@ -58,7 +58,7 @@ public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder, IReadOnl
/// write only to the console until logging is fully initialized.
/// </param>
/// <returns>
/// The incoming <see cref="IWebHostBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder, ILoggerFactory loggerFactory)
{
Expand All @@ -79,13 +79,14 @@ public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder, ILoggerF
/// write only to the console until logging is fully initialized.
/// </param>
/// <returns>
/// The incoming <see cref="IWebHostBuilder" /> so that additional calls can be chained.
/// The incoming <paramref name="builder" /> so that additional calls can be chained.
/// </returns>
public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder, IReadOnlySet<string> assemblyNamesToExclude, ILoggerFactory loggerFactory)
{
ArgumentGuard.NotNull(builder);
ArgumentGuard.NotNull(assemblyNamesToExclude);
ArgumentGuard.NotNull(loggerFactory);
ArgumentNullException.ThrowIfNull(builder);
ArgumentNullException.ThrowIfNull(assemblyNamesToExclude);
ArgumentGuard.ElementsNotNullOrWhiteSpace(assemblyNamesToExclude);
ArgumentNullException.ThrowIfNull(loggerFactory);

HostBuilderWrapper wrapper = HostBuilderWrapper.Wrap(builder);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
using MySqlConnector;
using Npgsql;
Expand Down Expand Up @@ -355,8 +356,12 @@ private static void AssertTracingIsAutowired(HostWrapper hostWrapper)
{
var tracerProvider = hostWrapper.Services.GetRequiredService<TracerProvider>();

hostWrapper.Services.GetService<IHostedService>().Should().NotBeNull();
hostWrapper.Services.GetService<TracingOptions>().Should().NotBeNull();
IHostedService[] hostedServices = hostWrapper.Services.GetServices<IHostedService>().ToArray();
hostedServices.Should().ContainSingle(hostedService => hostedService.GetType().Name == "TelemetryHostedService");

var optionsMonitor = hostWrapper.Services.GetRequiredService<IOptionsMonitor<TracingOptions>>();
optionsMonitor.CurrentValue.Name.Should().NotBeNull();

hostWrapper.Services.GetService<IDynamicMessageProcessor>().Should().NotBeNull();

FieldInfo? instrumentationsField = tracerProvider.GetType().GetField("instrumentations", BindingFlags.NonPublic | BindingFlags.Instance);
Expand Down Expand Up @@ -396,7 +401,7 @@ private static IHost GetHostExcluding(IReadOnlySet<string> assemblyNamesToExclud
{
builder.UseDefaultServiceProvider(options => options.ValidateScopes = true);
builder.ConfigureAppConfiguration(configurationBuilder => configurationBuilder.AddInMemoryCollection(TestHelpers.FastTestsConfiguration));
builder.ConfigureServices(services => services.AddRouting().AddActionDescriptorCollectionProvider());
builder.ConfigureServices(services => services.AddRouting().AddActionDescriptorCollectionProviderMock());
builder.Configure(applicationBuilder => applicationBuilder.UseRouting());
builder.UseTestServer();

Expand All @@ -411,7 +416,7 @@ private static IWebHost GetWebHostExcluding(IReadOnlySet<string> assemblyNamesTo
IWebHostBuilder builder = WebHost.CreateDefaultBuilder();
builder.UseDefaultServiceProvider(options => options.ValidateScopes = true);
builder.ConfigureAppConfiguration(configurationBuilder => configurationBuilder.AddInMemoryCollection(TestHelpers.FastTestsConfiguration));
builder.ConfigureServices(services => services.AddActionDescriptorCollectionProvider());
builder.ConfigureServices(services => services.AddActionDescriptorCollectionProviderMock());
builder.Configure(applicationBuilder => applicationBuilder.UseRouting());
builder.UseTestServer();

Expand All @@ -425,7 +430,7 @@ private static WebApplication GetWebApplicationExcluding(IReadOnlySet<string> as
WebApplicationBuilder builder = WebApplication.CreateBuilder();
builder.WebHost.UseDefaultServiceProvider(options => options.ValidateScopes = true);
builder.Configuration.AddInMemoryCollection(TestHelpers.FastTestsConfiguration);
builder.Services.AddActionDescriptorCollectionProvider();
builder.Services.AddActionDescriptorCollectionProviderMock();
builder.WebHost.UseTestServer();

builder.AddSteeltoe(assemblyNamesToExclude);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
</PropertyGroup>

<Import Project="..\..\..\..\shared.props" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
</PropertyGroup>

<Import Project="..\..\..\..\shared.props" />
Expand Down
Loading
Loading