Skip to content
Permalink
Browse files

Clean-up. Trailing spaces removed from code lines and files reencoded…

… with the UTF8 BOM.
  • Loading branch information...
dotnetjunkie committed May 15, 2019
1 parent e5ee267 commit e36da69c6e15232576e386aad2b1c9d827594409
Showing with 1,605 additions and 1,605 deletions.
  1. +2 −2 src/PartialTrustTestRunner/Program.cs
  2. +1 −1 src/PartialTrustTestRunner/Properties/AssemblyInfo.cs
  3. +6 −6 src/SimpleInjector.CI/Properties/AssemblyInfo.cs
  4. +1 −1 src/SimpleInjector.CodeSamples.Tests.Unit/AutomaticFactoryExtensionsTests.cs
  5. +2 −2 src/SimpleInjector.CodeSamples.Tests.Unit/ContextDependentExtensionsTests.cs
  6. +3 −3 src/SimpleInjector.CodeSamples.Tests.Unit/ContextualDecoratorExtensionsTests.cs
  7. +2 −2 src/SimpleInjector.CodeSamples.Tests.Unit/ExpirationExtensionsTests.cs
  8. +1 −1 src/SimpleInjector.CodeSamples.Tests.Unit/InstancePerDependencyLifestyleTests.cs
  9. +2 −2 src/SimpleInjector.CodeSamples.Tests.Unit/InterceptorExtensionsTests.cs
  10. +1 −1 src/SimpleInjector.CodeSamples.Tests.Unit/KeyedFactoryTests.cs
  11. +1 −1 src/SimpleInjector.CodeSamples.Tests.Unit/MethodInjectionExtensionsTests.cs
  12. +1 −1 src/SimpleInjector.CodeSamples.Tests.Unit/ParameterConventionExtensionsTests.cs
  13. +1 −1 src/SimpleInjector.CodeSamples.Tests.Unit/Properties/AssemblyInfo.cs
  14. +2 −2 src/SimpleInjector.CodeSamples.Tests.Unit/PropertyInjectionExtensionsTests.cs
  15. +3 −3 src/SimpleInjector.CodeSamples.Tests.Unit/RuntimeDecoratorExtensionsTests.cs
  16. +1 −1 src/SimpleInjector.CodeSamples.Tests.Unit/VarianceExtensions_AllowToResolveVariantTypesTests.cs
  17. +1 −1 src/SimpleInjector.CodeSamples/AttributedPropertyInjectionExtensions.cs
  18. +1 −1 src/SimpleInjector.CodeSamples/AutoResolveUnregisteredTypeExtensions.cs
  19. +1 −1 src/SimpleInjector.CodeSamples/ConstructorRegistrationExtensions.cs
  20. +1 −1 src/SimpleInjector.CodeSamples/ContextDependentExtensions.cs
  21. +3 −3 src/SimpleInjector.CodeSamples/InstancePerDependencyLifestyle.cs
  22. +4 −4 src/SimpleInjector.CodeSamples/InterceptorExtensions.cs
  23. +5 −5 src/SimpleInjector.CodeSamples/MethodInjectionExtensions.cs
  24. +2 −2 src/SimpleInjector.CodeSamples/MostResolvableParametersConstructorResolutionBehavior.cs
  25. +2 −2 src/SimpleInjector.CodeSamples/OptionalArgumentsBehaviorExtensions.cs
  26. +1 −1 src/SimpleInjector.CodeSamples/ParameterConvention.cs
  27. +3 −3 src/SimpleInjector.CodeSamples/ParameterConventionExtensions.cs
  28. +1 −1 src/SimpleInjector.CodeSamples/PerGraphLifestyle.cs
  29. +2 −2 src/SimpleInjector.CodeSamples/PerThreadRegistrationsExtensions.cs
  30. +1 −1 src/SimpleInjector.CodeSamples/Properties/AssemblyInfo.cs
  31. +2 −2 src/SimpleInjector.CodeSamples/ResolvingExtensions.cs
  32. +2 −2 src/SimpleInjector.CodeSamples/ThreadLifestyle.cs
  33. +7 −7 src/SimpleInjector.CodeSamples/VarianceExtensions.cs
  34. +1 −1 src/SimpleInjector.Integration.AspNetCore.Mvc.Core/Properties/AssemblyInfo.cs
  35. +1 −1 src/SimpleInjector.Integration.AspNetCore.Mvc.Core/Requires.cs
  36. +1 −1 ...impleInjector.Integration.AspNetCore.Mvc.Core/SimpleInjectorAspNetCoreBuilderMvcCoreExtensions.cs
  37. +3 −3 ...impleInjector.Integration.AspNetCore.Mvc.Core/SimpleInjectorAspNetCoreMvcIntegrationExtensions.cs
  38. +1 −1 src/SimpleInjector.Integration.AspNetCore.Mvc.Core/SimpleInjectorControllerActivator.cs
  39. +1 −1 src/SimpleInjector.Integration.AspNetCore.Mvc.Core/SimpleInjectorViewComponentActivator.cs
  40. +1 −1 src/SimpleInjector.Integration.AspNetCore.Mvc/Properties/AssemblyInfo.cs
  41. +1 −1 src/SimpleInjector.Integration.AspNetCore.Mvc/SimpleInjectorAspNetCoreBuilderMvcExtensions.cs
  42. +1 −1 src/SimpleInjector.Integration.AspNetCore.Mvc/SimpleInjectorAspNetCoreMvcIntegrationExtensions.cs
  43. +2 −2 src/SimpleInjector.Integration.AspNetCore.Mvc/SimpleInjectorPageModelActivatorProvider.cs
  44. +2 −2 src/SimpleInjector.Integration.AspNetCore.Mvc/SimpleInjectorTagHelperActivator.cs
  45. +1 −1 src/SimpleInjector.Integration.AspNetCore/AspNetCoreServiceProviderAccessor.cs
  46. +5 −5 src/SimpleInjector.Integration.AspNetCore/AspNetRequestLifestyle.cs
  47. +1 −1 src/SimpleInjector.Integration.AspNetCore/Properties/AssemblyInfo.cs
  48. +1 −1 src/SimpleInjector.Integration.AspNetCore/RequestScopingStartupFilter.cs
  49. +1 −1 src/SimpleInjector.Integration.AspNetCore/Requires.cs
  50. +2 −2 src/SimpleInjector.Integration.AspNetCore/SimpleInjectorAddOptionsAspNetCoreExtensions.cs
  51. +1 −1 src/SimpleInjector.Integration.AspNetCore/SimpleInjectorAspNetCoreBuilder.cs
  52. +6 −6 src/SimpleInjector.Integration.AspNetCore/SimpleInjectorAspNetIntegrationExtensions.cs
  53. +1 −1 src/SimpleInjector.Integration.AspNetCore/SimpleInjectorUseOptionsAspNetCoreExtensions.cs
  54. +1 −1 src/SimpleInjector.Integration.GenericHost/SimpleInjectorGenericHostExtensions.cs
  55. +1 −1 src/SimpleInjector.Integration.ServiceCollection/DefaultServiceProviderAccessor.cs
  56. +1 −1 src/SimpleInjector.Integration.ServiceCollection/IServiceProviderAccessor.cs
  57. +1 −1 src/SimpleInjector.Integration.ServiceCollection/SimpleInjectorAddOptions.cs
  58. +3 −3 src/SimpleInjector.Integration.ServiceCollection/SimpleInjectorServiceCollectionExtensions.cs
  59. +1 −1 src/SimpleInjector.Integration.ServiceCollection/SimpleInjectorUseOptions.cs
  60. +1 −1 src/SimpleInjector.Integration.Wcf/Properties/AssemblyInfo.cs
  61. +1 −1 src/SimpleInjector.Integration.Wcf/Requires.cs
  62. +2 −2 src/SimpleInjector.Integration.Wcf/SimpleInjectorInstanceProvider.cs
  63. +4 −4 src/SimpleInjector.Integration.Wcf/SimpleInjectorServiceBehavior.cs
  64. +2 −2 src/SimpleInjector.Integration.Wcf/SimpleInjectorServiceHost.cs
  65. +9 −9 src/SimpleInjector.Integration.Wcf/SimpleInjectorServiceHostFactory.cs
  66. +7 −7 src/SimpleInjector.Integration.Wcf/SimpleInjectorWcfExtensions.Obsolete.cs
  67. +4 −4 src/SimpleInjector.Integration.Wcf/SimpleInjectorWcfExtensions.cs
  68. +3 −3 src/SimpleInjector.Integration.Wcf/WcfOperationLifestyle.cs
  69. +1 −1 src/SimpleInjector.Integration.Web.Mvc/Properties/AssemblyInfo.cs
  70. +7 −7 src/SimpleInjector.Integration.Web.Mvc/SimpleInjectorDependencyResolver.cs
  71. +1 −1 src/SimpleInjector.Integration.Web.Mvc/SimpleInjectorFilterAttributeFilterProvider.cs
  72. +8 −8 src/SimpleInjector.Integration.Web.Mvc/SimpleInjectorMvcExtensions.cs
  73. +1 −1 src/SimpleInjector.Integration.Web.Tests.Unit/Properties/AssemblyInfo.cs
  74. +1 −1 src/SimpleInjector.Integration.Web/Properties/AssemblyInfo.cs
  75. +1 −1 src/SimpleInjector.Integration.Web/Requires.cs
  76. +4 −4 src/SimpleInjector.Integration.Web/SimpleInjectorHttpModule.cs
  77. +9 −9 src/SimpleInjector.Integration.Web/SimpleInjectorWebExtensions.cs
  78. +1 −1 src/SimpleInjector.Integration.Web/SimpleInjectorWebInitializer.cs
  79. +3 −3 src/SimpleInjector.Integration.Web/WebRequestLifestyle.cs
  80. +1 −1 src/SimpleInjector.Integration.WebApi/Properties/AssemblyInfo.cs
  81. +1 −1 src/SimpleInjector.Integration.WebApi/Requires.cs
  82. +1 −1 src/SimpleInjector.Integration.WebApi/SimpleInjectorHttpRequestMessageHandler.cs
  83. +1 −1 src/SimpleInjector.Integration.WebApi/SimpleInjectorHttpRequestMessageProvider.cs
  84. +18 −18 src/SimpleInjector.Integration.WebApi/SimpleInjectorWebApiDependencyResolver.cs
  85. +16 −16 src/SimpleInjector.Integration.WebApi/SimpleInjectorWebApiExtensions.Obsolete.cs
  86. +7 −7 src/SimpleInjector.Integration.WebApi/SimpleInjectorWebApiExtensions.cs
  87. +4 −4 src/SimpleInjector.Integration.WebApi/WebApiRequestLifestyle.cs
  88. +1 −1 src/SimpleInjector.Packaging/AssemblyInfo.cs
  89. +3 −3 src/SimpleInjector.Packaging/IPackage.cs
  90. +8 −8 src/SimpleInjector.Packaging/PackageExtensions.cs
  91. +5 −5 src/SimpleInjector.Tests.Unit/Advanced/CustomConstructorResolutionBehaviorTests.cs
  92. +3 −3 src/SimpleInjector.Tests.Unit/Advanced/CustomLifestyleSelectionBehaviorTests.cs
  93. +2 −2 src/SimpleInjector.Tests.Unit/Advanced/DefaultDependencyInjectionBehaviorTests.cs
  94. +2 −2 src/SimpleInjector.Tests.Unit/Advanced/PropertyInjectionTests.cs
  95. +2 −2 src/SimpleInjector.Tests.Unit/ConsistencyTests.cs
  96. +1 −1 src/SimpleInjector.Tests.Unit/ContainerCollectionAppendToTests.cs
  97. +2 −2 src/SimpleInjector.Tests.Unit/CuriouslyRecurringTemplatePatternTests.cs
  98. +6 −6 src/SimpleInjector.Tests.Unit/CyclicDependencyValidatorTests.cs
  99. +10 −10 src/SimpleInjector.Tests.Unit/DecoratorCollectionTests.cs
  100. +20 −20 src/SimpleInjector.Tests.Unit/DecoratorTests.cs
  101. +7 −7 src/SimpleInjector.Tests.Unit/Diagnostics/AmbiguousLifestylesAnalyzerTests.cs
  102. +1 −1 src/SimpleInjector.Tests.Unit/Diagnostics/CustomLifestyleTests.cs
  103. +1 −1 src/SimpleInjector.Tests.Unit/Diagnostics/LifestyleMismatchContainerAnalyzerTests.cs
  104. +1 −1 ...njector.Tests.Unit/Diagnostics/LifestyleMismatchDueToIterationOfStreamsDuringConstructionTests.cs
  105. +1 −1 src/SimpleInjector.Tests.Unit/Diagnostics/LifestyleMismatchServicesTests.cs
  106. +1 −1 src/SimpleInjector.Tests.Unit/Diagnostics/ShortCircuitContainerAnalyzerTests.cs
  107. +1 −1 src/SimpleInjector.Tests.Unit/Diagnostics/SingleResponsibilityViolationsAnalyzerTests.cs
  108. +2 −2 src/SimpleInjector.Tests.Unit/ExpressionBuildingEventTests.cs
  109. +1 −1 src/SimpleInjector.Tests.Unit/GetCurrentRegistrationsTests.cs
  110. +11 −11 src/SimpleInjector.Tests.Unit/GetInstanceTests.cs
  111. +3 −3 src/SimpleInjector.Tests.Unit/GetRegistrationTests.cs
  112. +1 −1 src/SimpleInjector.Tests.Unit/Helpers/DynamicTypeBuilder.cs
  113. +1 −1 src/SimpleInjector.Tests.Unit/InstanceProducerTests.cs
  114. +3 −3 src/SimpleInjector.Tests.Unit/Lifestyles/AsyncScopedLifestyleTests.cs
  115. +4 −4 src/SimpleInjector.Tests.Unit/Lifestyles/HybridLifestyleTests.cs
  116. +4 −4 src/SimpleInjector.Tests.Unit/Lifestyles/ThreadScopedLifestyleTests.cs
  117. +1 −1 src/SimpleInjector.Tests.Unit/Properties/AssemblyInfo.cs
  118. +10 −10 src/SimpleInjector.Tests.Unit/RegisterBatchTests.cs
  119. +1 −1 src/SimpleInjector.Tests.Unit/RegisterByFuncTests.cs
  120. +2 −2 src/SimpleInjector.Tests.Unit/RegisterCollectionDuplicateRegistrationTests.cs
  121. +9 −9 src/SimpleInjector.Tests.Unit/RegisterCollectionTests.cs
  122. +1 −1 src/SimpleInjector.Tests.Unit/RegisterConcreteTests.cs
  123. +44 −44 src/SimpleInjector.Tests.Unit/RegisterConditionalTests.cs
  124. +4 −4 src/SimpleInjector.Tests.Unit/RegisterInitializerTests.cs
  125. +14 −14 src/SimpleInjector.Tests.Unit/RegisterOpenGenericTests.cs
  126. +2 −2 src/SimpleInjector.Tests.Unit/RegisterSingleByInstanceTests.cs
  127. +12 −12 src/SimpleInjector.Tests.Unit/ResolveUnregisteredTypeEventTests.cs
  128. +5 −5 src/SimpleInjector.Tests.Unit/ScopedLifestyleTests.cs
  129. +1 −1 src/SimpleInjector.Tests.Unit/TestClasses.Handlers.cs
  130. +1 −1 src/SimpleInjector.Tests.Unit/TestHelpers.cs
  131. +1 −1 src/SimpleInjector.Tests.Unit/TypeExtensions_ToFriendlyName_Tests.cs
  132. +5 −5 src/SimpleInjector.Tests.Unit/TypesExtensionsTests.cs
  133. +1 −1 src/SimpleInjector.Tests.Unit/UnregisteredTypeEventArgsTests.cs
  134. +2 −2 src/SimpleInjector.Tests.Unit/VerifyTests.cs
  135. +12 −12 src/SimpleInjector/ActivationException.cs
  136. +2 −2 src/SimpleInjector/Advanced/AdvancedExtensions.cs
  137. +3 −3 src/SimpleInjector/Advanced/ApiObject.cs
  138. +1 −1 src/SimpleInjector/Advanced/DefaultConstructorResolutionBehavior.cs
  139. +1 −1 src/SimpleInjector/Advanced/DefaultDependencyInjectionBehavior.cs
  140. +1 −1 src/SimpleInjector/Advanced/DefaultLifestyleSelectionBehavior.cs
  141. +3 −3 src/SimpleInjector/Advanced/DefaultPropertySelectionBehavior.cs
  142. +4 −4 src/SimpleInjector/Advanced/IConstructorResolutionBehavior.cs
  143. +6 −6 src/SimpleInjector/Advanced/IDependencyInjectionBehavior.cs
  144. +4 −4 src/SimpleInjector/Advanced/ILifestyleSelectionBehavior.cs
  145. +3 −3 src/SimpleInjector/Advanced/IPropertySelectionBehavior.cs
  146. +4 −4 src/SimpleInjector/Advanced/InitializationContext.cs
  147. +4 −4 src/SimpleInjector/Advanced/InitializerContext.cs
  148. +3 −3 src/SimpleInjector/Advanced/InstanceInitializationData.cs
  149. +2 −2 src/SimpleInjector/Advanced/Internal/LazyScope.cs
  150. +4 −4 src/SimpleInjector/Advanced/Internal/LazyScopedRegistration.cs
  151. +2 −2 src/SimpleInjector/Advanced/KnownRelationship.cs
  152. +1 −1 src/SimpleInjector/Advanced/PropertyInjectionHelper.cs
  153. +1 −1 src/SimpleInjector/Advanced/PropertyInjectionHelper.full.cs
  154. +23 −23 src/SimpleInjector/Container.Common.cs
  155. +2 −2 src/SimpleInjector/Container.Common.full.cs
  156. +82 −82 src/SimpleInjector/Container.Registration.Batch.cs
  157. +131 −131 src/SimpleInjector/Container.Registration.CollectionRegistrator.cs
  158. +35 −35 src/SimpleInjector/Container.Registration.Collections.cs
  159. +37 −37 src/SimpleInjector/Container.Registration.Conditional.cs
  160. +103 −103 src/SimpleInjector/Container.Registration.Decorators.cs
  161. +183 −183 src/SimpleInjector/Container.Registration.cs
  162. +11 −11 src/SimpleInjector/Container.Resolving.cs
  163. +7 −7 src/SimpleInjector/Container.Verification.cs
  164. +22 −22 src/SimpleInjector/ContainerOptions.cs
  165. +11 −11 src/SimpleInjector/ContainerScope.cs
  166. +3 −3 src/SimpleInjector/DecoratorContext.cs
  167. +3 −3 src/SimpleInjector/DecoratorPredicateContext.cs
  168. +1 −1 src/SimpleInjector/Decorators/CompositeHelpers.cs
  169. +1 −1 src/SimpleInjector/Decorators/ContainerUncontrolledServicesDecoratorInterceptor.cs
  170. +4 −4 src/SimpleInjector/Decorators/DecoratorExpressionInterceptor.cs
  171. +1 −1 src/SimpleInjector/Decorators/DecoratorExpressionInterceptorData.cs
  172. +1 −1 src/SimpleInjector/Decorators/DecoratorHelpers.cs
  173. +1 −1 src/SimpleInjector/Decorators/DecoratorInfo.cs
  174. +1 −1 src/SimpleInjector/Decorators/DecoratorInterceptor.cs
  175. +2 −2 src/SimpleInjector/Decorators/ServiceDecoratorExpressionInterceptor.cs
  176. +1 −1 src/SimpleInjector/Decorators/ServiceTypeDecoratorInfo.cs
  177. +14 −14 src/SimpleInjector/DiagnosticVerificationException.cs
  178. +2 −2 src/SimpleInjector/Diagnostics/AmbiguousLifestylesDiagnosticResult.cs
  179. +2 −2 src/SimpleInjector/Diagnostics/Analyzer.cs
  180. +1 −1 src/SimpleInjector/Diagnostics/Analyzers/AmbiguousLifestylesAnalyzer.cs
  181. +1 −1 src/SimpleInjector/Diagnostics/Analyzers/ContainerRegisteredServiceAnalyzer.cs
  182. +1 −1 src/SimpleInjector/Diagnostics/Analyzers/DisposableTransientComponentAnalyzer.cs
  183. +1 −1 src/SimpleInjector/Diagnostics/Analyzers/LifestyleMismatchAnalyzer.cs
  184. +1 −1 src/SimpleInjector/Diagnostics/Analyzers/ShortCircuitedDependencyAnalyzer.cs
  185. +2 −2 src/SimpleInjector/Diagnostics/Analyzers/SingleResponsibilityViolationsAnalyzer.cs
  186. +1 −1 src/SimpleInjector/Diagnostics/Analyzers/TornLifestyleContainerAnalyzer.cs
  187. +1 −1 src/SimpleInjector/Diagnostics/ContainerAnalyzerProvider.cs
  188. +4 −4 src/SimpleInjector/Diagnostics/ContainerRegisteredServiceDiagnosticResult.cs
  189. +3 −3 src/SimpleInjector/Diagnostics/Debugger/ContainerDebugView.cs
  190. +1 −1 src/SimpleInjector/Diagnostics/Debugger/DebuggerGeneralWarningsContainerAnalyzer.cs
  191. +1 −1 src/SimpleInjector/Diagnostics/Debugger/DebuggerViewItem.cs
  192. +2 −2 src/SimpleInjector/Diagnostics/DiagnosticGroup.cs
  193. +1 −1 src/SimpleInjector/Diagnostics/DiagnosticResult.cs
  194. +1 −1 src/SimpleInjector/Diagnostics/DiagnosticResultGrouper.cs
  195. +1 −1 src/SimpleInjector/Diagnostics/DiagnosticSeverity.enum.cs
  196. +9 −9 src/SimpleInjector/Diagnostics/DiagnosticType.enum.cs
  197. +2 −2 src/SimpleInjector/Diagnostics/DisposableTransientComponentDiagnosticResult.cs
  198. +1 −1 src/SimpleInjector/Diagnostics/IContainerAnalyzer.cs
  199. +1 −1 src/SimpleInjector/Diagnostics/KnownRelationshipCollection.cs
  200. +1 −1 src/SimpleInjector/Diagnostics/LifestyleMismatchChecker.cs
  201. +1 −1 src/SimpleInjector/Diagnostics/LifestyleMismatchDiagnosticResult.cs
  202. +4 −4 src/SimpleInjector/Diagnostics/ShortCircuitedDependencyDiagnosticResult.cs
  203. +1 −1 src/SimpleInjector/Diagnostics/SingleResponsibilityViolationDiagnosticResult.cs
  204. +3 −3 src/SimpleInjector/Diagnostics/TornLifestyleDiagnosticResult.cs
  205. +1 −1 src/SimpleInjector/Diagnostics/TypeGeneralizer.cs
  206. +10 −10 src/SimpleInjector/ExpressionBuildingEventArgs.cs
  207. +8 −8 src/SimpleInjector/ExpressionBuiltEventArgs.cs
  208. +2 −2 src/SimpleInjector/Helpers.cs
  209. +1 −1 src/SimpleInjector/InjectionConsumerInfo.cs
  210. +12 −12 src/SimpleInjector/InjectionTargetInfo.cs
  211. +29 −29 src/SimpleInjector/InstanceProducer.cs
  212. +1 −1 src/SimpleInjector/InstanceProducerOfT.cs
  213. +1 −1 src/SimpleInjector/Internals/ArgumentMapping.cs
  214. +1 −1 src/SimpleInjector/Internals/AsyncLocal.cs
  215. +7 −7 src/SimpleInjector/Internals/CollectionResolver.cs
  216. +6 −6 src/SimpleInjector/Internals/CompilationHelpers.cs
  217. +8 −8 src/SimpleInjector/Internals/CompilationHelpers.full.cs
  218. +2 −2 src/SimpleInjector/Internals/ConditionalHashSet.cs
  219. +1 −1 src/SimpleInjector/Internals/ConstantArrayIndexizerVisitor.cs
  220. +1 −1 src/SimpleInjector/Internals/ConstantFinderVisitor.cs
  221. +3 −3 src/SimpleInjector/Internals/ContainerControlledCollection.cs
  222. +1 −1 src/SimpleInjector/Internals/ContainerControlledCollectionResolver.cs
  223. +1 −1 src/SimpleInjector/Internals/ContainerControlledItem.cs
  224. +1 −1 src/SimpleInjector/Internals/ContainerUncontrolledCollectionResolver.cs
  225. +3 −3 src/SimpleInjector/Internals/ControlledCollectionHelper.cs
  226. +1 −1 src/SimpleInjector/Internals/CyclicDependencyException.cs
  227. +2 −2 src/SimpleInjector/Internals/CyclicDependencyValidator.cs
  228. +1 −1 src/SimpleInjector/Internals/GenericArgumentFinder.cs
  229. +2 −2 src/SimpleInjector/Internals/GenericRegistrationEntry.cs
  230. +5 −5 src/SimpleInjector/Internals/GenericTypeBuilder.cs
  231. +2 −2 src/SimpleInjector/Internals/IContainerControlledCollection.cs
  232. +1 −1 src/SimpleInjector/Internals/IRegistrationEntry.cs
  233. +1 −1 src/SimpleInjector/Internals/InstanceProducerVisualizer.cs
  234. +1 −1 src/SimpleInjector/Internals/InternalsFinderVisitor.cs
  235. +3 −3 src/SimpleInjector/Internals/NonGenericRegistrationEntry.cs
  236. +1 −1 src/SimpleInjector/Internals/ObjectGraphStringBuilder.cs
  237. +3 −3 src/SimpleInjector/Internals/OverriddenParameter.cs
  238. +1 −1 src/SimpleInjector/Internals/ParameterDictionary.cs
  239. +1 −1 src/SimpleInjector/Internals/ReferenceEqualityComparer.cs
  240. +2 −2 src/SimpleInjector/Internals/ReflectionExtensions.cs
  241. +1 −1 src/SimpleInjector/Internals/RegistrationEntry.cs
  242. +1 −1 src/SimpleInjector/Internals/ServiceCreatedListenerArgs.cs
  243. +1 −1 src/SimpleInjector/Internals/SubExpressionReplacer.cs
  244. +4 −4 src/SimpleInjector/Internals/TypeConstraintValidator.cs
  245. +89 −89 src/SimpleInjector/Lifestyle.cs
  246. +10 −10 src/SimpleInjector/Lifestyles/AsyncScopedLifestyle.cs
  247. +1 −1 src/SimpleInjector/Lifestyles/CustomLifestyle.cs
  248. +1 −1 src/SimpleInjector/Lifestyles/DefaultFallbackScopedHybridLifestyle.cs
  249. +1 −1 src/SimpleInjector/Lifestyles/ExpressionRegistration.cs
  250. +1 −1 src/SimpleInjector/Lifestyles/FlowingScopedLifestyle.cs
  251. +1 −1 src/SimpleInjector/Lifestyles/HybridLifestyle.cs
  252. +1 −1 src/SimpleInjector/Lifestyles/HybridRegistration.cs
  253. +1 −1 src/SimpleInjector/Lifestyles/IHybridLifestyle.cs
  254. +1 −1 src/SimpleInjector/Lifestyles/LifestyleSelectionBehaviorProxyLifestyle.cs
  255. +1 −1 src/SimpleInjector/Lifestyles/LifestyleSelectorScopedHybridLifestyle.cs
  256. +1 −1 src/SimpleInjector/Lifestyles/ScopeManager.cs
  257. +1 −1 src/SimpleInjector/Lifestyles/ScopedProxyLifestyle.cs
  258. +2 −2 src/SimpleInjector/Lifestyles/ScopedRegistration.cs
  259. +1 −1 src/SimpleInjector/Lifestyles/ScopedScopeLifestyle.cs
  260. +4 −4 src/SimpleInjector/Lifestyles/SingletonLifestyle.cs
  261. +16 −16 src/SimpleInjector/Lifestyles/ThreadScopedLifestyle.cs
  262. +1 −1 src/SimpleInjector/Lifestyles/TransientLifestyle.cs
  263. +1 −1 src/SimpleInjector/Lifestyles/UnknownLifestyle.cs
  264. +5 −5 src/SimpleInjector/PredicateContext.cs
  265. +1 −1 src/SimpleInjector/Properties/AssemblyInfo.cs
  266. +23 −23 src/SimpleInjector/Registration.cs
  267. +2 −2 src/SimpleInjector/Requires.cs
  268. +11 −11 src/SimpleInjector/Scope.cs
  269. +11 −11 src/SimpleInjector/ScopedLifestyle.cs
  270. +1 −1 src/SimpleInjector/StringResources.cs
  271. +2 −2 src/SimpleInjector/TypeFactoryContext.cs
  272. +7 −7 src/SimpleInjector/Types.cs
  273. +9 −9 src/SimpleInjector/TypesExtensions.cs
  274. +7 −7 src/SimpleInjector/TypesToRegisterOptions.cs
  275. +7 −7 src/SimpleInjector/UnregisteredTypeEventArgs.cs
  276. +4 −4 src/SimpleInjector/VerificationOption.enum.cs
  277. +1 −1 src/SimpleInjector/VisualizationOptions.cs
@@ -6,7 +6,7 @@
using System.Runtime.Remoting;

/// <summary>
/// Allows running tests for a given test assembly in a partial trust sandbox.
/// Allows running tests for a given test assembly in a partial trust sandbox.
/// Allows verifying whether Simple Injector runs correctly in partial trust.
/// </summary>
public static class Program
@@ -24,7 +24,7 @@ public static void Main(string[] args)
domain.Load(AssemblyName.GetAssemblyName(dll));
}

ObjectHandle handle = Activator.CreateInstanceFrom(domain,
ObjectHandle handle = Activator.CreateInstanceFrom(domain,
assemblyFile: typeof(TestRunner).Assembly.Location,
typeName: typeof(TestRunner).FullName);

@@ -16,4 +16,4 @@
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e710bb05-06b6-40fc-9ba0-d02fff69a532")]
[assembly: Guid("e710bb05-06b6-40fc-9ba0-d02fff69a532")]
@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SimpleInjector.CI")]
@@ -14,8 +14,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

@@ -25,12 +25,12 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -65,7 +65,7 @@ public void ToString_OnInstanceResolvedAsAutomaticFactory_Succeeds()
factory.ToString();
}

public class Service : IService
public class Service : IService
{
}
}
@@ -33,7 +33,7 @@ public void RegisterWithContext_CalledForAlreadyRegisteredService_ThrowsExpected
container.Register<IContextualLogger, ContextualLogger>();

// Act
Action action = () =>
Action action = () =>
container.RegisterWithContext<IContextualLogger>(context => new ContextualLogger(context));

// Assert
@@ -195,7 +195,7 @@ public void GetInstance_ResolvingATypeThatDependsOnInterceptedTypeWithAContextDe

container.Register<IRepository, RepositoryThatDependsOnLogger>(Lifestyle.Transient);

// Since InterceptWith alters the Expression of ILogger, this would make it harder for
// Since InterceptWith alters the Expression of ILogger, this would make it harder for
// the Expression visitor of RegisterWithContext to find and alter this expression. So this is
// an interesting test.
container.InterceptWith<FakeInterceptor>(type => type == typeof(IContextualLogger));
@@ -83,14 +83,14 @@ public void GetInstance_ResolvingInstanceWithTwoConditionallyDecoratorsRegistere
container.Register<ICommandHandler<RealCommand>, NullCommandHandler<RealCommand>>();

container.RegisterContextualDecorator(
typeof(ICommandHandler<>),
typeof(ICommandHandler<>),
typeof(CommandHandlerDecorator<>),
parameter => true);

container.RegisterContextualDecorator(
typeof(ICommandHandler<>),
typeof(ICommandHandler<>),
typeof(AnotherCommandHandlerDecorator<>),
parameter => true);
parameter => true);

// Act
var consumer = container.GetInstance<Consumer<ICommandHandler<RealCommand>>>();
@@ -73,7 +73,7 @@ public void GetInstance_CalledSecondTimeBeforeAbsoluteExpirationTimesOut2_Return
var instance2 = container.GetInstance<ICommand>();

// Assert
Assert.AreEqual(instance1, instance2, string.Format("Timing only begins during first call to " +
Assert.AreEqual(instance1, instance2, string.Format("Timing only begins during first call to " +
"GetInstance. The timeout is {0} ms. and {1} ms. is within this timeout. We should get the " +
"same instance.", ThreeTimeUnits, TwoTimeUnits));
}
@@ -94,7 +94,7 @@ public void GetInstance_CalledSecondTimeAfterAbsoluteExpirationTimedOut_ReturnsA
var instance2 = container.GetInstance<ICommand>();

// Assert
Assert.IsFalse(object.ReferenceEquals(instance1, instance2),
Assert.IsFalse(object.ReferenceEquals(instance1, instance2),
"A new instance was expected to be returned when it is requested after it timed out.");
}

@@ -60,4 +60,4 @@ public void GetInstance_ResolvingTransientDependingOnInstancePerDependencyInstan
Assert.AreNotSame(c1.Logger, c2.Logger);
}
}
}
}
@@ -626,7 +626,7 @@ public void CallingInterceptedMethodWithOutArgument_InterceptedWithPassThroughIn
[TestMethod]
public void CallingAnInterceptedMethod_InterceptorThatChangesTheInputParameters_GetsForwardedToTheInterceptee()
{
// Arrange
// Arrange
string expectedValue = "XYZ";

var container = new Container();
@@ -657,7 +657,7 @@ public void CallingAnInterceptedMethod_InterceptorThatChangesTheInputParameters_
[TestMethod]
public void CallingAnInterceptedMethod_InterceptorThatChangesAnOutputParameter_OutputParameterFlowsBackToTheCaller()
{
// Arrange
// Arrange
string expectedOutValue = "KLM";

var container = new Container();
@@ -17,7 +17,7 @@ public void DefaultUseCase()
// Arrange
var container = new Container();

var factory = new KeyedFactory<string, IPlugin>(container,
var factory = new KeyedFactory<string, IPlugin>(container,
StringComparer.OrdinalIgnoreCase);

// Act
@@ -97,7 +97,7 @@ public void GetInstance_InjectionAttributeOnStaticMethod_ThrowsExceptionWithExpe
catch (ActivationException ex)
{
AssertThat.StringContains(
$"Method {typeof(ClassWithStaticInjectionMethod).ToFriendlyName()}.Initialize is static",
$"Method {typeof(ClassWithStaticInjectionMethod).ToFriendlyName()}.Initialize is static",
ex.Message);
}
}
@@ -325,7 +325,7 @@ public void OptionalParameterConvention_TypeWithOptionalDependencyAndDependencyN
// Arrange
var container = new Container();

AddConventions(container,
AddConventions(container,
new OptionalParameterConvention(container.Options.DependencyInjectionBehavior));

// Act
@@ -16,4 +16,4 @@
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("fce00ecf-2995-41c3-8555-660b6dfd282a")]
[assembly: Guid("fce00ecf-2995-41c3-8555-660b6dfd282a")]
@@ -120,7 +120,7 @@ public void GetInstance_TypeWithGivenAttributeAppliedButDependencyMissing_Throws

// Assert
AssertThat.ThrowsWithExceptionMessageContains<ActivationException>(
typeof(ServiceWithAttributedProperty).Name +
typeof(ServiceWithAttributedProperty).Name +
" could be found and an implicit registration could not be made.",
action);

@@ -136,7 +136,7 @@ public void AutoInjectPropertiesWithAttribute_MixedWithRegisterWithContext_Shoul
var container = new Container();

// This attribute must be applied before RegisterWithContext gets applied, since the registered
// events adds new
// events adds new
container.Options.AutoWirePropertiesWithAttribute<Inject2Attribute>();

container.RegisterWithContext<ILogger>(context => new ContextualLogger(context));
@@ -77,14 +77,14 @@ public void GetInstance_OnRegisterRuntimeDecoratorRegistrationAndSingletonProxy_
container.RegisterDecorator(typeof(ICommandHandler<>), typeof(CommandHandlerProxy<>), Lifestyle.Singleton);

// Act
var handler1 =
var handler1 =
((CommandHandlerProxy<RealCommand>)container.GetInstance<ICommandHandler<RealCommand>>())
.DecorateeFactory();

// Runtime switch
decorateHandler = true;

var handler2 =
var handler2 =
((CommandHandlerProxy<RealCommand>)container.GetInstance<ICommandHandler<RealCommand>>())
.DecorateeFactory();

@@ -99,7 +99,7 @@ public void GetInstance_OnRegisterRuntimeDecoratorRegistrationWithOverriddenLife
// Arrange
var container = new Container();

container.Options.LifestyleSelectionBehavior =
container.Options.LifestyleSelectionBehavior =
new CustomLifestyleSelectionBehavior(Lifestyle.Singleton);

container.Register<ICommandHandler<RealCommand>, NullCommandHandler<RealCommand>>();
@@ -134,7 +134,7 @@ public void GetInstance_RequestingATypeWithToCompatibleVariantTypes_ThrowsExpect
}
catch (ActivationException ex)
{
Assert.IsTrue(ex.Message.Contains(expectedMessage),
Assert.IsTrue(ex.Message.Contains(expectedMessage),
"Expected: " + expectedMessage + " Actual: " + ex.Message);
Assert.IsTrue(ex.Message.Contains("Action<Object>"), " Actual: " + ex.Message);
Assert.IsTrue(ex.Message.Contains("Action<Exception>"), " Actual: " + ex.Message);
@@ -27,7 +27,7 @@ public AttributePropertyInjectionBehavior(IPropertySelectionBehavior baseBehavio
this.baseBehavior = baseBehavior;
}

public bool SelectProperty(Type t, PropertyInfo p) =>
public bool SelectProperty(Type t, PropertyInfo p) =>
this.IsPropertyDecoratedWithAttribute(p) || this.baseBehavior.SelectProperty(t, p);

private bool IsPropertyDecoratedWithAttribute(PropertyInfo property) =>
@@ -41,7 +41,7 @@ public static void AutoResolveMatchingImplementation(this Container container, p

/// <summary>
/// Automatically resolves an implementation of an unregistered abstraction, by searching the supplied
/// list of assemblies for a type with the identical name as the interface, but without the 'I'.
/// list of assemblies for a type with the identical name as the interface, but without the 'I'.
/// In other words, if an IProductService is being resolved, the concrete type with name "ProductService"
/// will be registered.
/// </summary>
@@ -40,7 +40,7 @@ public static class ConstructorRegistrationExtensions
public static ConstructorSelectorConvention RegisterConstructorSelectorConvention(
this Container container)
{
var convention = new ConstructorSelectorConvention(container,
var convention = new ConstructorSelectorConvention(container,
container.Options.ConstructorResolutionBehavior);

container.Options.ConstructorResolutionBehavior = convention;
@@ -29,7 +29,7 @@ public static class ContextDependentExtensions
{
public static void RegisterWithContext<TService>(this Container container,
Func<DependencyContext, TService> contextBasedFactory) where TService : class {
if (contextBasedFactory == null)
if (contextBasedFactory == null)
throw new ArgumentNullException(nameof(contextBasedFactory));

Func<TService> rootFactory = () => contextBasedFactory(DependencyContext.Root);
@@ -4,15 +4,15 @@
using System.Linq.Expressions;

/// <summary>
/// Injects a new instance for each dependency. Behaves the same as Transient but
/// prevents any lifestyle mismatches from being reported. Instances will not be disposed!
/// Injects a new instance for each dependency. Behaves the same as Transient but
/// prevents any lifestyle mismatches from being reported. Instances will not be disposed!
/// Use with care -or rather- don't use AT ALL!!!
/// </summary>
public class InstancePerDependencyLifestyle : Lifestyle
{
public InstancePerDependencyLifestyle() : base("Instance Per Dependency") { }

// Returning Singleton.Length prevents lifestyle mismatches when injected into a
// Returning Singleton.Length prevents lifestyle mismatches when injected into a
// component, while allowing instances to depend on singletons.
public override int Length => Singleton.Length;

@@ -12,7 +12,7 @@ namespace SimpleInjector.CodeSamples
container.InterceptWith<MonitoringInterceptor>(type => type == typeof(IUserRepository));
container.InterceptWith<YetAnotherInterceptor>(type => type == typeof(IUserRepository));
// Ensures that all registered (interface) service that who's name end with 'CommandHandler' get
// Ensures that all registered (interface) service that who's name end with 'CommandHandler' get
// intercepted using with a MonitoringInterceptor.
container.InterceptWith<MonitoringInterceptor>(type => type.Name.EndsWith("CommandHandler"));
@@ -106,7 +106,7 @@ public static class InterceptorExtensions {
[DebuggerStepThrough]
private static Expression BuildInterceptorExpression<TInterceptor>(
Container container)
where TInterceptor : class
where TInterceptor : class
{
var interceptorRegistration = container.GetRegistration(typeof(TInterceptor));

@@ -182,7 +182,7 @@ private class InterceptionHelper {

public static class Interceptor
{
public static T CreateProxy<T>(IInterceptor interceptor, T realInstance) =>
public static T CreateProxy<T>(IInterceptor interceptor, T realInstance) =>
(T)CreateProxy(typeof(T), interceptor, realInstance);

[DebuggerStepThrough]
@@ -218,7 +218,7 @@ public InterceptorProxy(Type classToProxy, object obj, IInterceptor interceptor)

private IMessage InvokeMethodCall(IMethodCallMessage msg) {
var i = new Invocation { Proxy = this, Message = msg, Arguments = msg.Args };
i.Proceeding = () =>
i.Proceeding = () =>
i.ReturnValue = msg.MethodBase.Invoke(this.realInstance, i.Arguments);
this.interceptor.Intercept(i);
return new ReturnMessage(i.ReturnValue, i.Arguments,
@@ -50,7 +50,7 @@ internal void ExpressionBuilding(object sender, ExpressionBuildingEventArgs e)

private MethodInfo[] GetMethodsToInject(Type type)
{
var all =
var all =
BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance;

return (
@@ -82,7 +82,7 @@ select this.container.GetRegistration(parameter.ParameterType, throwOnFailure: t
AddKnownRelationships(e, dependencies);
}

private static void ReplaceExpression(ExpressionBuildingEventArgs e, MethodInfo method,
private static void ReplaceExpression(ExpressionBuildingEventArgs e, MethodInfo method,
InstanceProducer[] dependencies)
{
Delegate injectorDelegate = BuildInjectorDelegate(e.KnownImplementationType, method);
@@ -96,7 +96,7 @@ select this.container.GetRegistration(parameter.ParameterType, throwOnFailure: t
e.Expression = Expression.Invoke(Expression.Constant(injectorDelegate), parameters);
}

private static void AddKnownRelationships(ExpressionBuildingEventArgs e,
private static void AddKnownRelationships(ExpressionBuildingEventArgs e,
InstanceProducer[] dependencies)
{
var relationships =
@@ -177,14 +177,14 @@ private static void VerifyMethod(MethodInfo method)
{
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
"Method {0}.{1} returns {2}, but injection is only supported the return type is " +
"void.",
"void.",
method.DeclaringType.ToFriendlyName(), method.Name, method.ReturnType.ToFriendlyName()));
}

if (!method.GetParameters().Any())
{
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
"Method {0}.{1} has no parameters. What do you expect me to inject here?",
"Method {0}.{1} has no parameters. What do you expect me to inject here?",
method.DeclaringType.ToFriendlyName(), method.Name));
}

@@ -14,7 +14,7 @@ namespace SimpleInjector.CodeSamples
// Register this as follows:
// container.Options.ConstructorResolutionBehavior =
// new MostResolvableParametersConstructorResolutionBehavior(container);
public class MostResolvableParametersConstructorResolutionBehavior
public class MostResolvableParametersConstructorResolutionBehavior
: IConstructorResolutionBehavior {
private readonly Container container;

@@ -62,7 +62,7 @@ where this.IsCalledDuringRegistrationPhase
private static string TypeShouldHaveConstructorWithResolvableTypes(Type type) =>
string.Format(CultureInfo.InvariantCulture,
"For the container to be able to create {0}, it should contain a public " +
"constructor that only contains parameters that can be resolved.",
"constructor that only contains parameters that can be resolved.",
type.ToFriendlyName());
}
}
Oops, something went wrong.

0 comments on commit e36da69

Please sign in to comment.
You can’t perform that action at this time.