No. Only members that are public to dynamic proxy can be intercepted.
How to Intercept non public members with castle dynamic proxy?
-
13-01-2022 - |
문제
Is it possible to intercept non-public methods with Castle Dynamic Proxy?
Will something like this work to intercept non-public members?
base.BootStrapContainer.Register(
Classes.FromAssemblyNamed(referencedAssembly)
.IncludeNonPublicTypes()
.Pick()
.Configure(component => component.Interceptors<TracingAspect>()));
해결책
제휴하지 않습니다 StackOverflow