|
RE: Proxy interception via DispatchOperation
Hello Ralph,
I wanted to intercept the call itself in order to implement client side caching
behavior.
By doing so, I will be able to intercept the proxy call and return immediatly
with a cache result. without crossing process boudaries.
Best Regards,
Ido Samuelson
Senior consultant
Advantech (Magen MTC)
mailto:idos@magen.com
> So, what ARE you after? There is no exact equivalent to the operation
> invoker on the service. What do you use it for? Why do you need that
> exact functionality? I'd like to know whether there's a better way or
> whether we might do something to help you get your work done.
>
> Cheers, Ralph
>
> "Ido Samuelson" wrote:
>
>> Hello Ralph,
>>
>> This I knew, however the Invoker on a duplex channel is for invoking
>> the callback methods. Not exactly what I am after.
>>
>> Best Regards,
>>
>> Ido Samuelson
>> Senior consultant
>> Advantech (Magen MTC)
>> mailto:idos@magen.com
>>> Update: There is no direct parallel to IOperationInvoker on the
>>> proxy UNLESS you're doing duplex, in which case you can extract that
>>> from the ProxyBehavior.CallbackContractDispatchBehavior (IIRC). I'll
>>> be curious to hear whether those other extension points acheive your
>>> goals or not.
>>>
>>> Cheers, Ralph
>>>
>>> "Ido Samuelson" wrote:
>>>
>>>> Hello Ralph,
>>>>
>>>> Thanks!, I will look into it today.
>>>>
>>>> Best Regards,
>>>>
>>>> Ido Samuelson
>>>> Senior consultant
>>>> Advantech (Magen MTC)
>>>> mailto:idos@magen.com
>>>>> I would say that it depends what you're trying to do. Try using
>>>>> ProxyOperation.ParameterInspector or
>>>>> ProxyOperation.OperationFormatter. Both give you so much control
>>>>> that you should be able to do what you want to do. If you want to
>>>>> manipulate a duplex callback on the proxy, then
>>>>> ProxyBehavior.DuplexCallbackDispatchBehavior.OperationInvoker will
>>>>> allow you to do that.
>>>>>
>>>>> Hope this helps, Ralph
>>>>>
>>>>> "Ido Samuelson" wrote:
>>>>>
>>>>>> On the service side I have the IOperationInvoker interface to
>>>>>> intercept the
>>>>>> invoke procedure (used via DispatchOperation)
>>>>>> Is there a way to override the invoker on the proxy side?
>>>>>> Best Regards,
>>>>>> Ido Samuelson
>>>>>> Senior consultant
>>>>>> Advantech (Magen MTC)
>>>>>> mailto:idos@magen.com |