Exemplo n.º 1
0
 public Mapper(
     IMapperOptions options,
     IMapSerializer serializer,
     IMapDeserializer deserializer,
     IMapConfig config)
 {
     this._options      = options;
     this._serializer   = serializer;
     this._deserializer = deserializer;
     this._config       = config;
 }
Exemplo n.º 2
0
 public MapMedia(
     IMapTable table,
     IMapDeserializer deserializer,
     IMapperOptions options,
     IMapConfig config)
 {
     this._table        = table;
     this._deserializer = deserializer;
     this._options      = options;
     this._config       = config;
 }
Exemplo n.º 3
0
        public static IMapperBuilder AddMapping(this IServiceCollection services, IMapperOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            var builder = new MapperBuilder(options);

            services.AddSingleton <IMapper>(p => builder.Build());
            return(builder);
        }