[MN-06] Mapster: Global Configuration Check #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Full Detail:
MappingConfig.cs(line 12) accessesTypeAdapterConfig.GlobalSettings. While currently safe, if the project scales and more assemblies add mappings via.Scan(), we risk multiple redundant scans which degrade startup performance.Action:
.Scan()or global configuration is wrapped in a check to prevent multiple executions.GlobalSettingsin favor of a specificTypeAdapterConfiginstance passed via DI.