A Policy implement IOperationBehavior does not working correctly!

Topics: Technical Questions, Usage Scenarios
Oct 27, 2010 at 9:20 AM

I implement a class implement IOperationInvoker named  CacheOperationInvoker, and I want to use it by my IOperationBehavior called CacheOperationBehavior.

in CacheOperationBehavior code likes:

public class CacheOperationBehavior:IOperationBehavior

{

...

       public void ApplyDispatchBehavior(OperationDescription operationDescription,
            DispatchOperation dispatchOperation)
        {
            dispatchOperation.Invoker = new CacheOperationInvoker(dispatchOperation.Invoker,dispatchOperation.Action);
        }

...

}

I make a policy called cachingPolicy which used on OpeVersion, but it does not work?

why?

Thanks for your reply and time!