Skip to content

Commit 491a1ca

Browse files
committed
Documenting changes
1 parent 8eb2b20 commit 491a1ca

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

docs/source/15.0-Upgrade-Guide.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,32 @@ services.AddAutoMapper(cfg => {
1414
});
1515
```
1616

17-
You can register for your license at [https://automapper.io](https://automapper.io).
17+
You can register for your license at [https://automapper.io](https://automapper.io).
18+
19+
## Breaking Changes
20+
21+
### `AddAutoMapper`
22+
23+
With the requirement to supply a license, the `AddAutoMapper` overloads all require the `Action<IMapperConfigurationExpression>` parameter:
24+
25+
```c#
26+
// Previous
27+
services.AddAutoMapper(typeof(Program));
28+
29+
// Current
30+
services.AddAutoMapper(cfg => cfg.LicenseKey = "<License Key Here>", typeof(Program));
31+
```
32+
33+
This method parameter is first for all `AddAutoMapper` overloads.
34+
35+
### `MapperConfiguration`
36+
37+
The constructor to `MapperConfiguration` now requires an `ILoggerFactory`:
38+
39+
```c#
40+
public MapperConfiguration(
41+
MapperConfigurationExpression configurationExpression,
42+
ILoggerFactory loggerFactory)
43+
```
44+
45+
This parameter is used for diagnostics.

0 commit comments

Comments
 (0)