/// <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."); }
public XmlAgent(IXmlGateway gateway, IXmlMapper mapper) { this.mapper = mapper; this.gateway = gateway; }