Closed krasin-ga closed 5 years ago
Hi @krasin-ga
I've added the test you specified and it passed in VS as well as the appveyor build. It sounds like maybe the use case is a bit more complex? Is it possible the name of the parameters don't match or the order isn't the same?
My bad. It turned out that the bug is reproduced only when creating a proxy type and registering it as a decorator.
var proxyType = new DefaultProxyBuilder().CreateClassProxyType(
typeof(ExampleClass),
new Type[0],
ProxyGenerationOptions.Default);
registrationBlock.ExportDecorator(proxyType)
.As(typeof(ExampleClass))
.WithCtorParam<IExportLocatorScope, IInterceptor[]>(
scope => Array.Empty<IInterceptor>());
Hi @krasin-ga
I tried adding that to the test and it still passes. Can you create a small working sample as a repo or maybe a gist?
My bad! 😃 The bug is reproduced only in the old version of Castle.Core (4.2.1), in version 4.4.0 everything is fine.
That would explain that, I'm using castle version 4.3.1 in my tests so I wouldn't have seen it.