![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | Host accessing service functionality and CallBacks with InstanceContextMode.Single Hi, I have a service hosted inside a windows application. I also a have a client requesting information thru the service, I created a proxy from the service thru the 'Add service reference' menu item. Once in a while I need the windows application hosting the service to also request some information from the service, so I created a proxy in the windows application with the 'Add service reference' as well. Is this standard practice? Ultimately, I need both client and host to be able to query services. Another question that I have is that if it's possible to have callbacks in a service which is declared as InstanceContextMode.Single: <ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Multiple, InstanceContextMode:=InstanceContextMode.Single)> Thanks, Mike |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Host accessing service functionality and CallBacks with InstanceCo When you add service reference you are technically creating a proxy to access the service. Since you have the Assembly you should be able to get to it directly. Moreover it is sign of "need for re-architecting" if the host has to do a reference to its own service. You can use InstanceContextMode.Single in a wsDualHttpBinding protocol. "Mike" wrote: Quote: > Hi, > > > > I have a service hosted inside a windows application. > > I also a have a client requesting information thru the service, I > created a proxy from the service thru the 'Add service reference' menu > item. > > Once in a while I need the windows application hosting the service to > also request some information from the service, so I created a proxy in > the windows application with the 'Add service reference' as well. Is > this standard practice? > > > > Ultimately, I need both client and host to be able to query services. > > > > Another question that I have is that if it's possible to have callbacks > in a service which is declared as InstanceContextMode.Single: > > > > <ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Multiple, > InstanceContextMode:=InstanceContextMode.Single)> > > > > Thanks, > > Mike > > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Is there a single-click methods of accessing my web space? ftp://login:password@mywebsite.com/ | Vista General | |||
| VbSystemModal type functionality for Read-Host input | PowerShell | |||
| Host accessing VPN connection from within VPC? | Virtual PC | |||
| accessing $nestedprompt through C#/host rather ... | PowerShell | |||