Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
khellang committed Nov 3, 2020
1 parent 37c131a commit fd61a81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Scrutor/Scrutor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Register services using assembly scanning and a fluent API.</Description>
<VersionPrefix>3.2.2</VersionPrefix>
<VersionPrefix>3.3.0</VersionPrefix>
<Authors>Kristian Hellang</Authors>
<TargetFrameworks>net461;netstandard2.0;netcoreapp3.1</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591</NoWarn>
Expand Down
2 changes: 0 additions & 2 deletions src/Scrutor/ServiceCollectionExtensions.Decoration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,11 @@ private static bool TryGetDescriptors(this IServiceCollection services, Type ser

private static ServiceDescriptor Decorate<TService>(this ServiceDescriptor descriptor, Func<TService, IServiceProvider, TService> 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<TService>(this ServiceDescriptor descriptor, Func<TService, TService> decorator)
{
// TODO: Annotate TService with notnull when preview 8 is out.
return descriptor.WithFactory(provider => decorator((TService) provider.GetInstance(descriptor))!);
}

Expand Down

0 comments on commit fd61a81

Please sign in to comment.