diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 862bdf0d..f6bd59b8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,17 +14,13 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- - name: Setup .NET Core SDK
- uses: actions/setup-dotnet@v1
+ - name: Setup .NET 8 SDK
+ uses: actions/setup-dotnet@v3
with:
- dotnet-version: "3.1.x"
-
- - name: Setup .NET 7 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: "7.0.x"
+ dotnet-version: "8.x"
+ dotnet-quality: "preview"
- name: Test
run: dotnet test --collect:"XPlat Code Coverage"
diff --git a/NuGet.Config b/NuGet.Config
index 05577e9b..dbf0180d 100644
--- a/NuGet.Config
+++ b/NuGet.Config
@@ -3,5 +3,6 @@
+
diff --git a/src/Scrutor/AttributeSelector.cs b/src/Scrutor/AttributeSelector.cs
index ed142d9d..0026ded4 100644
--- a/src/Scrutor/AttributeSelector.cs
+++ b/src/Scrutor/AttributeSelector.cs
@@ -8,12 +8,12 @@ namespace Scrutor;
internal class AttributeSelector : ISelector
{
- public AttributeSelector(IEnumerable types)
+ public AttributeSelector(ISet types)
{
Types = types;
}
- private IEnumerable Types { get; }
+ private ISet Types { get; }
void ISelector.Populate(IServiceCollection services, RegistrationStrategy? registrationStrategy)
{
@@ -49,4 +49,4 @@ private static IEnumerable GetDuplicates(IEnumerable
{
return attributes.GroupBy(s => s.ServiceType).SelectMany(grp => grp.Skip(1));
}
-}
\ No newline at end of file
+}
diff --git a/src/Scrutor/ClosedTypeDecorationStrategy.cs b/src/Scrutor/ClosedTypeDecorationStrategy.cs
index 2aa89f51..b161e629 100644
--- a/src/Scrutor/ClosedTypeDecorationStrategy.cs
+++ b/src/Scrutor/ClosedTypeDecorationStrategy.cs
@@ -4,7 +4,7 @@ namespace Scrutor;
internal sealed class ClosedTypeDecorationStrategy : DecorationStrategy
{
- public ClosedTypeDecorationStrategy(Type serviceType, Type? decoratorType, Func