Ant
no notes

Calling WCF Service from a WHS Add-in

WCF stores the binding info in the App.config, so if you wish to call a service from an add-in you would have to somehow get your add-in config into the WHS host config.

This would mean a merge on setup, not something I'd relish doing. After all logically its not my config and I don't want to mess arround with it.

As with everything, there is another way... create a second AppDomain and call your services there.

AppDomain.CreateDomain()

Horrah!

Well, not quite, it does leave you with some restrictions.

Because this is a form of Remoting, the objects instanciated and passed between the domains must be serializable, WCF objects generally are not. So create an object deriving from MarshalByRefObject and do all your work in that.

check out this for more detail
Using Multiple App.Config Files in .NET

If your developing for WHS, here's a great starting point
WHS Dev Tips

Post a Note

(required)

(required never shown)

On Twitter Follow MrAntix on Twitter

1 hours ago
TheNextWeb
Bing's search API now live on the Windows Azure Marketplace http://t.co/utX8uOuG by @alex

15/05/2012
WindowsAzure
Announcing the MEET Windows Azure Event! Streamed online June 7th. Register at http://t.co/bObzTAuL  #MEETAzure #WindowsAzure

59 minutes ago
commadelimited
Buy the @amazon Kindle version of mine and @cfjedimaster's @jquerymobile book for $10 today: http://t.co/PWRZ2dkd

just now
MSCloud
RT @msPartner: Bob Kelly offers details on Microsoft’s #cloud strategy: http://t.co/GECtwycA  via @rcpmag #Azure #mspartner ^NW

just now
Adobe_News1
Learn about the PhoneGap Connection API http://t.co/ztIb9Vab