44using Autofac . Extensions . DependencyInjection ;
55using Microsoft . Extensions . Configuration ;
66using Microsoft . Extensions . DependencyInjection ;
7- using Microsoft . Extensions . Hosting ;
87using Microsoft . Extensions . Logging ;
98using Rocket . Surgery . Conventions . Autofac . Internals ;
109using Rocket . Surgery . Conventions . DependencyInjection ;
@@ -36,7 +35,6 @@ public class AutofacBuilder : ConventionBuilder<IAutofacBuilder, IAutofacConvent
3635 /// <summary>
3736 /// Initializes a new instance of the <see cref="AutofacBuilder" /> class.
3837 /// </summary>
39- /// <param name="environment">The environment.</param>
4038 /// <param name="configuration">The configuration.</param>
4139 /// <param name="scanner">The scanner.</param>
4240 /// <param name="assemblyProvider">The assembly provider.</param>
@@ -55,7 +53,6 @@ public class AutofacBuilder : ConventionBuilder<IAutofacBuilder, IAutofacConvent
5553 /// services
5654 /// </exception>
5755 public AutofacBuilder (
58- IHostEnvironment environment ,
5956 IConfiguration configuration ,
6057 IConventionScanner scanner ,
6158 IAssemblyProvider assemblyProvider ,
@@ -67,7 +64,6 @@ public AutofacBuilder(
6764 )
6865 : base ( scanner , assemblyProvider , assemblyCandidateFinder , properties )
6966 {
70- Environment = environment ?? throw new ArgumentNullException ( nameof ( environment ) ) ;
7167 _containerBuilder = containerBuilder ?? throw new ArgumentNullException ( nameof ( containerBuilder ) ) ;
7268 Configuration = configuration ?? throw new ArgumentNullException ( nameof ( configuration ) ) ;
7369 Services = services ?? throw new ArgumentNullException ( nameof ( services ) ) ;
@@ -138,13 +134,6 @@ public IContainer Build()
138134 /// <value>The services.</value>
139135 public IServiceCollection Services { get ; }
140136
141- /// <summary>
142- /// The environment that this convention is running
143- /// Based on IHostEnvironment / IHostingEnvironment
144- /// </summary>
145- /// <value>The environment.</value>
146- public IHostEnvironment Environment { get ; }
147-
148137 /// <summary>
149138 /// Gets the on build.
150139 /// </summary>
0 commit comments