File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments