We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Configure
CompositionRootBuilder
1 parent 436e12f commit 95ee889Copy full SHA for 95ee889
CompositionRoot/CompositionRootBuilder.cs
@@ -1,3 +1,4 @@
1
+using System;
2
using Autofac;
3
using Autofac.Core;
4
@@ -15,8 +16,11 @@ public CompositionRootBuilder RegisterModule<T>()
15
16
}
17
18
public CompositionRootBuilder RegisterModule(IModule module)
19
+ => Configure(builder => builder.RegisterModule(module));
20
+
21
+ public CompositionRootBuilder Configure(Action<ContainerBuilder> configureAction)
22
{
- _builder.RegisterModule(module);
23
+ configureAction(_builder);
24
return this;
25
26
0 commit comments