C# RealProxy: for chained methods not working logging (Fluent interface pattern)

34 Views Asked by At

Why not working logging for chained methods, but if the same methods call via the saved instance, logging for ones work fine

Gist snippet

1

There are 1 best solutions below

0
On

I've found a solution, It's happened instead of that each method returned this but not Tranparet Proxy class Calculator So need to change at Calculator's methods this to

return (Calculator)new StepProxy<Calculator>(this).GetTransparentProxy();