diff --git a/Toolkit.Foundation/Cache.cs b/Toolkit.Foundation/Cache.cs index 789d4ba..1d16ee3 100644 --- a/Toolkit.Foundation/Cache.cs +++ b/Toolkit.Foundation/Cache.cs @@ -195,7 +195,7 @@ public class Cache(IComparer comparer) : } private class KeyValuePairComparer(IComparer comparer) : - IComparer> + IComparer> { private readonly IComparer comparer = comparer ?? Comparer.Default; diff --git a/Toolkit.Foundation/IServiceScopeFactory.cs b/Toolkit.Foundation/IServiceScopeFactory.cs index 0c8b45f..b6fb263 100644 --- a/Toolkit.Foundation/IServiceScopeFactory.cs +++ b/Toolkit.Foundation/IServiceScopeFactory.cs @@ -4,5 +4,5 @@ namespace Toolkit.Foundation; public interface IScopeServiceFactory { - (IServiceScope, TService)? Create(params object?[] parameters); + (IServiceScope, TService) Create(params object?[] parameters); } \ No newline at end of file diff --git a/Toolkit.Foundation/ScopeServiceFactory.cs b/Toolkit.Foundation/ScopeServiceFactory.cs index d5a955a..f4b4bd1 100644 --- a/Toolkit.Foundation/ScopeServiceFactory.cs +++ b/Toolkit.Foundation/ScopeServiceFactory.cs @@ -7,7 +7,7 @@ public class ScopeServiceFactory(IServiceScopeFactory serviceScopeFact IScopeServiceFactory where TService : notnull { - public (IServiceScope, TService)? Create(params object?[] parameters) + public (IServiceScope, TService) Create(params object?[] parameters) { if (serviceScopeFactory.CreateScope() is IServiceScope serviceScope) {