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.
1 parent 02f3939 commit c603608Copy full SHA for c603608
README.md
@@ -1,2 +1,11 @@
1
# Xer.Cqrs.Extensions.Autofac
2
-Autofac implementation for Xer.Cqrs
+Extension for Autofac's `ContainerBuilder` to allow easy registration of command handlers and event handlers.
3
+
4
+```csharp
5
+public void ConfigureServices(Autofac.ContainerBuilder container)
6
+{
7
+ // Register all CQRS components.
8
+ container.RegisterCqrs(typeof(CommandHandler).Assembly,
9
+ typeof(EventHandler).Assembly);
10
+}
11
+```
0 commit comments