Windows Vista Forums
Vista Forums Home Join Vista Forums 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 Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Chaining WXF services

 
 
Old 01-30-2007   #1 (permalink)
Graham Wright


 
 

Chaining WXF services

I would appreciate some architectural advice on chaining services.

As an example I have two discrete services hosted in a single Windows
service.
For most of the time these services are accessed by clients to provide non
related functionality but in one case service A needs to call service B in
order to fulfil a client request.

The obvious solution would be for service A to act as a standard client of
service B (Service Reference from Visual Studio etc) but this seems
inefficient as both services are hosted in the same process and establishing
a communications channel to effectively talk to yourself seems unnecessary.

Is there any way of services hosted in the same process chaining calls
without this overhead ?



My System SpecsSystem Spec
Old 01-30-2007   #2 (permalink)
Mariano Omar Rodriguez


 
 

Re: Chaining WXF services

Instance the class directly with new and call the service method.

"Graham Wright" <grahamwright@msn.com> wrote in message
news:uZ%23dK%23ERHHA.4276@TK2MSFTNGP02.phx.gbl...
>I would appreciate some architectural advice on chaining services.
>
> As an example I have two discrete services hosted in a single Windows
> service.
> For most of the time these services are accessed by clients to provide non
> related functionality but in one case service A needs to call service B in
> order to fulfil a client request.
>
> The obvious solution would be for service A to act as a standard client of
> service B (Service Reference from Visual Studio etc) but this seems
> inefficient as both services are hosted in the same process and
> establishing a communications channel to effectively talk to yourself
> seems unnecessary.
>
> Is there any way of services hosted in the same process chaining calls
> without this overhead ?
>


My System SpecsSystem Spec
Old 02-01-2007   #3 (permalink)
Arkady Frenkel


 
 

Re: Chaining WXF services

look for generic approach in "Sharing an Instance"
http://msdn.microsoft.com/msdnmag/is...WCFEssentials/.

Arkady

"Graham Wright" <grahamwright@msn.com> wrote in message
news:uZ%23dK%23ERHHA.4276@TK2MSFTNGP02.phx.gbl...
>I would appreciate some architectural advice on chaining services.
>
> As an example I have two discrete services hosted in a single Windows
> service.
> For most of the time these services are accessed by clients to provide non
> related functionality but in one case service A needs to call service B in
> order to fulfil a client request.
>
> The obvious solution would be for service A to act as a standard client of
> service B (Service Reference from Visual Studio etc) but this seems
> inefficient as both services are hosted in the same process and
> establishing a communications channel to effectively talk to yourself
> seems unnecessary.
>
> Is there any way of services hosted in the same process chaining calls
> without this overhead ?
>



My System SpecsSystem Spec
Old 02-01-2007   #4 (permalink)
Arkady Frenkel


 
 

Re: Chaining WXF services

In addition you can use
http://groups.google.com/group/micro...291b7474a06cac
Arkady

"Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
news:eRjH%23ReRHHA.1200@TK2MSFTNGP04.phx.gbl...
> look for generic approach in "Sharing an Instance"
> http://msdn.microsoft.com/msdnmag/is...WCFEssentials/.
>
> Arkady
>
> "Graham Wright" <grahamwright@msn.com> wrote in message
> news:uZ%23dK%23ERHHA.4276@TK2MSFTNGP02.phx.gbl...
>>I would appreciate some architectural advice on chaining services.
>>
>> As an example I have two discrete services hosted in a single Windows
>> service.
>> For most of the time these services are accessed by clients to provide
>> non related functionality but in one case service A needs to call service
>> B in order to fulfil a client request.
>>
>> The obvious solution would be for service A to act as a standard client
>> of service B (Service Reference from Visual Studio etc) but this seems
>> inefficient as both services are hosted in the same process and
>> establishing a communications channel to effectively talk to yourself
>> seems unnecessary.
>>
>> Is there any way of services hosted in the same process chaining calls
>> without this overhead ?
>>

>
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Telenor Selects Microsoft Connected Services Framework to Facilitate Its Services Strategy Vista News
Telenor Selects Microsoft Connected Services Framework to Facilitate Its Services Strategy Vista News
Telenor Selects Microsoft Connected Services Framework to Facilitate Its Services Strategy Vista News
Telenor Selects Microsoft Connected Services Framework to Facilitate Its Services Strategy Vista News
Telenor Selects Microsoft Connected Services Framework to Facilitate Its Services Strategy Vista News


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