WcfFacility + IDisposable = IInterceptor not called

20 views
Skip to first unread message

Tiago Soczek

unread,
Feb 22, 2013, 7:20:49 PM2/22/13
to castle-pro...@googlegroups.com
Hi guys,

I found a issue while using a IInterceptor with WcfFacility.

When I call a operation from a service that implements IDisposable, the interceptor is not called. With a service that NOT implements IDisposable, the interceptor was called correctly.

To reproduce the error, the test case can be used: WillApplyCustomInterceptorsWhenCallingMethodsAsynchronously (in WcfClientFixture.cs)  - just need modify IOperations to implement IDisposable interface.

The exception:

System.InvalidOperationException : Something is wrong.  No AsyncResult is available.  This may be a bug so please report it.

When was called sync (without BeginWcfCall) the value is returned, but the IInterceptor didn't was called.

It's a bug or a behavior that I misunderstood? Lifestyle related?

Thanks,

Tiago Soczek

Reply all
Reply to author
Forward
0 new messages