/// <contentfrom cref="IXmlMapperFactory.Register{T, U}" />
        public void Register <TSource, TDestination>(IXmlMapper <TSource, TDestination> mapper, string name = null)
        {
            if (mapper == null)
            {
                throw new ArgumentNullException("mapper");
            }

            var key = Key(typeof(TSource), typeof(TDestination), name);

            this.mappers[key] = mapper;
        }
 /// <contentfrom cref="IXmlMapperFactory.Register{T, U}" />
 public void Register <TSource, TDestination>(IXmlMapper <TSource, TDestination> mapper, string name = null)
 {
     throw new NotSupportedException("Use CachingMapperFactory if registration required.");
 }
Example #3
0
 public XmlAgent(IXmlGateway gateway, IXmlMapper mapper)
 {
     this.mapper  = mapper;
     this.gateway = gateway;
 }
Example #4
0
 public XmlAgent(IXmlGateway gateway, IXmlMapper mapper)
 {
     this.mapper = mapper;
       this.gateway = gateway;
 }