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

IProxyGenerationHook

public interface IProxyGenerationHook
Used during the target type inspection process. Implementors have a chance to customize the proxy generation process.
using System; using System.Reflection; namespace Castle.DynamicProxy { public interface IProxyGenerationHook { void MethodsInspected(); void NonProxyableMemberNotification(Type type, MemberInfo memberInfo); bool ShouldInterceptMethod(Type type, MethodInfo methodInfo); } }