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

IProxyGenerationHook

public interface IProxyGenerationHook
Used during the target type inspection process. Implementors have a chance to customize the proxy generation process.

Invoked by the generation process to notify that the whole process has completed.

Invoked by the generation process to notify that a member was not marked as virtual.

bool ShouldInterceptMethod(Type type, MethodInfo methodInfo)

Invoked by the generation process to determine if the specified method should be proxied.