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

ComponentProxyInspector

Inspects the component configuration and type looking for information that can influence the generation of a proxy for that component.

We specifically look for additionalInterfaces and marshalByRefProxy on the component configuration or the ComponentProxyBehaviorAttribute attribute.

public virtual void ProcessModel(IKernel kernel, ComponentModel model)

Searches for proxy behavior in the configuration and, if unsuccessful look for the ComponentProxyBehaviorAttribute attribute in the implementation type.

protected virtual void ReadProxyBehavior(IKernel kernel, ComponentModel model)

Reads the proxy behavior associated with the component configuration/type and applies it to the model.

Returns a ComponentProxyBehaviorAttribute instance if the type uses the attribute. Otherwise returns null.