<PackageReference Include="Castle.Core" Version="4.4.1" />

IProxyBuilder

public interface IProxyBuilder
Abstracts the implementation of proxy type construction.
ILogger Logger { get; set; }

Gets or sets the ILogger that this ProxyGenerator logs to.

Gets the ModuleScope associated with this builder.

Type CreateClassProxyType(Type classToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions options)

Creates a proxy type for given classToProxy, implementing additionalInterfacesToProxy, using options provided.

Type CreateClassProxyTypeWithTarget(Type classToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions options)

Type CreateInterfaceProxyTypeWithoutTarget(Type interfaceToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions options)

Creates a proxy type for given interfaceToProxy that delegates all calls to the provided interceptors.

Type CreateInterfaceProxyTypeWithTarget(Type interfaceToProxy, Type[] additionalInterfacesToProxy, Type targetType, ProxyGenerationOptions options)

Creates a proxy type that proxies calls to interfaceToProxy members on targetType, implementing additionalInterfacesToProxy, using options provided.

Type CreateInterfaceProxyTypeWithTargetInterface(Type interfaceToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions options)

Creates a proxy type for given interfaceToProxy and that delegates all calls to the provided interceptors and allows interceptors to switch the actual target of invocation.