From fd61a81876a8ae3e8913fd7ef439bbc995ebc066 Mon Sep 17 00:00:00 2001 From: Kristian Hellang Date: Tue, 3 Nov 2020 19:40:31 +0100 Subject: [PATCH] Bump version --- src/Scrutor/Scrutor.csproj | 2 +- src/Scrutor/ServiceCollectionExtensions.Decoration.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Scrutor/Scrutor.csproj b/src/Scrutor/Scrutor.csproj index 8d493411..7145c26b 100644 --- a/src/Scrutor/Scrutor.csproj +++ b/src/Scrutor/Scrutor.csproj @@ -1,7 +1,7 @@  Register services using assembly scanning and a fluent API. - 3.2.2 + 3.3.0 Kristian Hellang net461;netstandard2.0;netcoreapp3.1 $(NoWarn);CS1591 diff --git a/src/Scrutor/ServiceCollectionExtensions.Decoration.cs b/src/Scrutor/ServiceCollectionExtensions.Decoration.cs index 95eb5c7a..c6cee692 100644 --- a/src/Scrutor/ServiceCollectionExtensions.Decoration.cs +++ b/src/Scrutor/ServiceCollectionExtensions.Decoration.cs @@ -313,13 +313,11 @@ private static bool TryGetDescriptors(this IServiceCollection services, Type ser private static ServiceDescriptor Decorate(this ServiceDescriptor descriptor, Func decorator) { - // TODO: Annotate TService with notnull when preview 8 is out. return descriptor.WithFactory(provider => decorator((TService) provider.GetInstance(descriptor), provider)!); } private static ServiceDescriptor Decorate(this ServiceDescriptor descriptor, Func decorator) { - // TODO: Annotate TService with notnull when preview 8 is out. return descriptor.WithFactory(provider => decorator((TService) provider.GetInstance(descriptor))!); }