Castle.DynamicProxy.Generators.InterfaceProxyWithoutTargetGenerator.AddMappingForTargetType C# (CSharp) Méthode

AddMappingForTargetType() protected méthode

protected AddMappingForTargetType ( ITypeContributor>.IDictionary interfaceTypeImplementerMapping, Type proxyTargetType, ICollection targetInterfaces, ICollection additionalInterfaces, INamingScope namingScope ) : ITypeContributor
interfaceTypeImplementerMapping ITypeContributor>.IDictionary
proxyTargetType System.Type
targetInterfaces ICollection
additionalInterfaces ICollection
namingScope INamingScope
Résultat ITypeContributor
		protected override ITypeContributor AddMappingForTargetType(
			IDictionary<Type, ITypeContributor> interfaceTypeImplementerMapping, Type proxyTargetType,
			ICollection<Type> targetInterfaces, ICollection<Type> additionalInterfaces, INamingScope namingScope)
		{
			var contributor = new InterfaceProxyWithoutTargetContributor(namingScope, (c, m) => NullExpression.Instance)
			{ Logger = Logger };
			foreach (var @interface in targetType.GetAllInterfaces())
			{
				contributor.AddInterfaceToProxy(@interface);
				AddMappingNoCheck(@interface, contributor, interfaceTypeImplementerMapping);
			}
			return contributor;
		}