From 39f4e28f29f7855b1c6b4f24865445a78de79fa3 Mon Sep 17 00:00:00 2001 From: TheXamlGuy Date: Sun, 29 Sep 2024 17:05:47 +0100 Subject: [PATCH] Removed nullable --- Toolkit.Foundation/Cache.cs | 2 +- Toolkit.Foundation/IServiceScopeFactory.cs | 2 +- Toolkit.Foundation/ScopeServiceFactory.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {