Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Windows 7 Forum Vista Tutorials Tags

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Proxy interception via DispatchOperation

 
 
LinkBack Thread Tools Display Modes
Old 03-04-2006   #1 (permalink)
Ido Samuelson
Guest


 
 

Proxy interception via DispatchOperation


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



My System SpecsSystem Spec
Old 03-04-2006   #2 (permalink)
Ralph Squillace
Guest


 
 

RE: Proxy interception via DispatchOperation

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
>
>
>

My System SpecsSystem Spec
Old 03-04-2006   #3 (permalink)
Ido Samuelson
Guest


 
 

RE: Proxy interception via DispatchOperation

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



My System SpecsSystem Spec
Old 03-04-2006   #4 (permalink)
Ralph Squillace
Guest


 
 

RE: Proxy interception via DispatchOperation

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

>
>
>

My System SpecsSystem Spec
Old 03-04-2006   #5 (permalink)
Ido Samuelson
Guest


 
 

RE: Proxy interception via DispatchOperation

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



My System SpecsSystem Spec
Old 03-04-2006   #6 (permalink)
Ralph Squillace
Guest


 
 

RE: Proxy interception via DispatchOperation

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

>
>
>

My System SpecsSystem Spec
Old 03-04-2006   #7 (permalink)
Ido Samuelson
Guest


 
 

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



My System SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: IE proxy setting and VPN Robert Aldwinckle Vista networking & sharing 0 08-14-2007 09:06 AM
IE Proxy keeps changing Simon Says Vista security 1 03-01-2007 11:48 PM
Proxy Authentication LStinger Vista networking & sharing 1 02-26-2007 01:28 PM
proxy Simla Vista account administration 0 02-06-2007 06:29 AM


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53