<PackageReference Include="Castle.Windsor" Version="3.2.0" />

NotSupportedProxyFactory

This is a placeholder implementation of IProxyFactory.
using Castle.Core; using Castle.MicroKernel.Context; using System; namespace Castle.MicroKernel.Proxy { [Serializable] public class NotSupportedProxyFactory : IProxyFactory { public void AddInterceptorSelector(IModelInterceptorsSelector selector) { } public object Create(IKernel kernel, object instance, ComponentModel mode, CreationContext context, params object[] constructorArguments) { throw new NotImplementedException("You must supply an implementation of IProxyFactory to use interceptors on the Microkernel"); } public object Create(IProxyFactoryExtension customFactory, IKernel kernel, ComponentModel model, CreationContext context, params object[] constructorArguments) { throw new NotImplementedException("You must supply an implementation of IProxyFactory to use interceptors on the Microkernel"); } public bool RequiresTargetInstance(IKernel kernel, ComponentModel model) { return false; } public bool ShouldCreateProxy(ComponentModel model) { return false; } } }