Example #1
0
        public static void Register(string alias, IDriverJsonMapper mapper)
        {
            alias.CheckNotNullOrWhitespace(nameof(alias));
            mapper.CheckNotNull(nameof(mapper));

            s_aliasMapperMap[alias.ToLowerInvariant()] = mapper;
        }
Example #2
0
        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);
        }