using GB5Shared.DTO.Framework.Login; namespace IceImportBLL.LookupProvider; // DI-scanned as IEnumerable, selected by EntityId. Provides a batch (not per-row) // Code/Name -> Id resolution for one specific entity. Register a dedicated implementation only for // entities that need something other than the generic Menu/WebService GetSelectList fallback that // EntityLookupService uses when no ILookupProvider claims a given EntityId. public interface ILookupProvider { int EntityId { get; } Task> ResolveCodesToIdsAsync( IEnumerable codes, LoginDTO login, CancellationToken ct); Task> ResolveNamesToIdsAsync( IEnumerable names, LoginDTO login, CancellationToken ct); }