diff --git a/build/Source.ruleset b/build/Source.ruleset index 459e4e0..8994858 100644 --- a/build/Source.ruleset +++ b/build/Source.ruleset @@ -1,9 +1,11 @@ - - + + - - + + + + @@ -12,23 +14,45 @@ - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/Test.ruleset b/build/Test.ruleset index 3c26c01..b64a37a 100644 --- a/build/Test.ruleset +++ b/build/Test.ruleset @@ -1,16 +1,14 @@ - - + + - - - - + + - - - + - + + + @@ -20,37 +18,93 @@ - - - + - + - - - + + + + + - + - + - + + + - + - + - + - + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -58,11 +112,11 @@ - + - + - + @@ -82,6 +136,13 @@ + + + + + + + diff --git a/src/Autofac.Extras.AggregateService/AggregateServiceGenerator.cs b/src/Autofac.Extras.AggregateService/AggregateServiceGenerator.cs index 1caa0a8..c64e6fd 100644 --- a/src/Autofac.Extras.AggregateService/AggregateServiceGenerator.cs +++ b/src/Autofac.Extras.AggregateService/AggregateServiceGenerator.cs @@ -47,7 +47,7 @@ public static object CreateInstance(Type interfaceType, IComponentContext contex if (!interfaceType.GetTypeInfo().IsInterface) { - throw new ArgumentException(AggregateServicesResources.TypeMustBeInterface, nameof(interfaceType)); + throw new ArgumentException(AggregateServicesResources.TypeMustBeInterface, paramName: nameof(interfaceType)); } var resolverInterceptor = new ResolvingInterceptor(interfaceType, context); diff --git a/src/Autofac.Extras.AggregateService/Autofac.Extras.AggregateService.csproj b/src/Autofac.Extras.AggregateService/Autofac.Extras.AggregateService.csproj index c924c8f..8d25858 100644 --- a/src/Autofac.Extras.AggregateService/Autofac.Extras.AggregateService.csproj +++ b/src/Autofac.Extras.AggregateService/Autofac.Extras.AggregateService.csproj @@ -1,33 +1,43 @@  + + Autofac.Extras.AggregateService + Autofac.Extras.AggregateService Dynamic aggregate service implementation generation for Autofac. + Copyright © 2015 Autofac Contributors + Autofac Contributors + Autofac + Autofac + ../../Autofac.snk + true + en-US + net10.0;net8.0;netstandard2.1;netstandard2.0 latest enable - true true - Autofac.Extras.AggregateService - ../../Autofac.snk - true + ../../build/Source.ruleset + true + AllEnabledByDefault + enable + true + Autofac.Extras.AggregateService autofac;di;ioc;dependencyinjection Release notes are at https://github.com/autofac/Autofac.Extras.AggregateService/releases icon.png https://autofac.org MIT + README.md git https://github.com/autofac/Autofac.Extras.AggregateService - en-US - Copyright (c) Autofac Project. All rights reserved. - AllEnabledByDefault - ../../build/Source.ruleset true true true - $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - Autofac Contributors - Autofac - Autofac + true + snupkg + + PrepareResources;$(CompileDependsOn) @@ -35,6 +45,7 @@ + @@ -48,16 +59,22 @@ all + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + MSBuild:Compile + CSharp + $(IntermediateOutputPath)%(Filename).Designer.cs + %(Filename) + + - - ResXFileCodeGenerator - AggregateServicesResources.Designer.cs - $(IntermediateOutputPath)/AggregateServicesResources.Designer.cs - CSharp Autofac.Extras.AggregateService - AggregateServicesResources diff --git a/src/Autofac.Extras.AggregateService/ResolvingInterceptor.cs b/src/Autofac.Extras.AggregateService/ResolvingInterceptor.cs index a2e42e3..a24e13b 100644 --- a/src/Autofac.Extras.AggregateService/ResolvingInterceptor.cs +++ b/src/Autofac.Extras.AggregateService/ResolvingInterceptor.cs @@ -66,8 +66,7 @@ public void Intercept(IInvocation invocation) return method .DeclaringType? .GetProperties() - .Where(prop => prop.GetGetMethod() == method) - .FirstOrDefault(); + .FirstOrDefault(prop => prop.GetGetMethod() == method); } private static void InvalidReturnTypeInvocation(IInvocation invocation) diff --git a/test/Autofac.Extras.AggregateService.Test/Autofac.Extras.AggregateService.Test.csproj b/test/Autofac.Extras.AggregateService.Test/Autofac.Extras.AggregateService.Test.csproj index fa145d0..d4e04de 100644 --- a/test/Autofac.Extras.AggregateService.Test/Autofac.Extras.AggregateService.Test.csproj +++ b/test/Autofac.Extras.AggregateService.Test/Autofac.Extras.AggregateService.Test.csproj @@ -8,19 +8,15 @@ true true ../../build/Test.ruleset + AllEnabledByDefault + true false latest - - - - - - - - + + @@ -33,6 +29,10 @@ all + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + all