Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 1171e79

Browse files
authored
Merge pull request #1 from BrainCrumbz/BrainCrumbz-docs-readme
docs(readme): replace MediatR references and examples
2 parents 2b9c024 + 49e780b commit 1171e79

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1-
# MediatR extensions for Microsoft.Extensions.DependencyInjection
1+
# AutoMapper extensions for Microsoft.Extensions.DependencyInjection
22

3-
Scans assemblies and adds handlers implementations to the container. To use, with an `IServiceCollection` instance:
3+
Scans assemblies and:
44

5-
```
6-
services.AddMediatR(typeof(MyHander));
5+
1. adds profiles to mapping configuration
6+
2. adds value resolvers, member value resolvers, type converters to the container.
7+
8+
To use, with an `IServiceCollection` instance:
9+
10+
```c#
11+
services.AddAutoMapper();
712
```
813

9-
or with an assembly:
14+
or with a `DependencyContext`:
1015

16+
```c#
17+
services.AddAutoMapper(DependencyContext.Default);
1118
```
12-
services.AddMediatR(typeof(Startup).Assembly);
19+
20+
or one or more assemblies:
21+
22+
```c#
23+
services.AddAutoMapper(assembly1, assembly2 /*, ...*/);
1324
```
1425

15-
Supports generic variance of handlers.
26+
or marker types:
27+
28+
```c#
29+
services.AddAutoMapper(type1, type2 /*, ...*/);
30+
```

0 commit comments

Comments
 (0)