protected override void AddMappingForAdditionalInterfaces(
     CompositeTypeContributor contributor,
     Type[] proxiedInterfaces,
     IDictionary <Type, ITypeContributor> typeImplementerMapping,
     ICollection <Type> targetInterfaces
     )
 {
 }
Ejemplo n.º 2
0
        protected override void AddMappingForAdditionalInterfaces(CompositeTypeContributor contributor, Type[] proxiedInterfaces,
                                                                  IDictionary <Type, ITypeContributor> typeImplementerMapping,
                                                                  ICollection <Type> targetInterfaces)
        {
            foreach (var @interface in interfaces)
            {
                if (!ImplementedByTarget(targetInterfaces, @interface) || proxiedInterfaces.Contains(@interface))
                {
                    continue;
                }

                contributor.AddInterfaceToProxy(@interface);
                AddMappingNoCheck(@interface, contributor, typeImplementerMapping);
            }
        }