The instructions here provide a better way to set the license than the example in the readme:
|
### Auto-Discovery via Environment Variables |
|
|
|
If no license key is set in code, AutoMapper looks for one in environment variables. This is convenient for containerized and cloud environments, and for enterprises that share a single key across many services without code changes: |
|
|
|
- `AUTOMAPPER_LICENSE_KEY` – the AutoMapper-specific license key. |
|
- `LUCKYPENNY_LICENSE_KEY` – a shared key usable across Lucky Penny products (for example, [MediatR](https://github.com/LuckyPennySoftware/MediatR) reads the same variable). Because it is shared, the key must be for a license that includes AutoMapper (a `Bundle` or AutoMapper edition); a MediatR-only license will not validate here. |
The instructions here provide a better way to set the license than the example in the readme:
AutoMapper/docs/source/License-configuration.md
Lines 21 to 26 in dfa6dd5