public static void Register(string alias, IDriverJsonMapper mapper) { alias.CheckNotNullOrWhitespace(nameof(alias)); mapper.CheckNotNull(nameof(mapper)); s_aliasMapperMap[alias.ToLowerInvariant()] = mapper; }
public DriverOptions CreateOptions(DriverOptionsJsonSection section) { IDriverJsonMapper mapper = GetOptionsMapper(section.Type); return(mapper.CreateOptions(section)); }
private static void MapDriver(DriverJsonSection section, AtataContextBuilder builder) { IDriverJsonMapper mapper = DriverJsonMapperAliases.Resolve(section.Type); mapper.Map(section, builder); }