File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<Project Sdk =" Microsoft.NET.Sdk; Microsoft.Build.CentralPackageVersions" >
33 <PropertyGroup >
4- <Version >1.0 .0</Version >
4+ <Version >1.1 .0</Version >
55 <AssemblyName >Messerli.CompositionRoot</AssemblyName >
66 <RootNamespace >Messerli.CompositionRoot</RootNamespace >
77 </PropertyGroup >
Original file line number Diff line number Diff line change 1+ using System ;
12using Autofac ;
23using Autofac . Core ;
34
@@ -15,8 +16,11 @@ public CompositionRootBuilder RegisterModule<T>()
1516 }
1617
1718 public CompositionRootBuilder RegisterModule ( IModule module )
19+ => Configure ( builder => builder . RegisterModule ( module ) ) ;
20+
21+ public CompositionRootBuilder Configure ( Action < ContainerBuilder > configureAction )
1822 {
19- _builder . RegisterModule ( module ) ;
23+ configureAction ( _builder ) ;
2024 return this ;
2125 }
2226
Original file line number Diff line number Diff line change 1818* Remove upper constraint on ` System.Collections.Immutable `
1919* Add symbols package
2020* Add ` [Pure] ` attributes to pure builder methods
21+
22+ ## 1.1.0
23+ * Add a new ` Configure ` method on ` CompositionRootBuilder ` that allows
24+ arbitrary setup code to run on the underlying ` ContainerBuilder ` .
You can’t perform that action at this time.
0 commit comments