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