Skip to content

Commit c603608

Browse files
authored
Add basic documentation
1 parent 02f3939 commit c603608

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
# Xer.Cqrs.Extensions.Autofac
2-
Autofac implementation for Xer.Cqrs
2+
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

Comments
 (0)