Click here to Skip to main content
15,888,234 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have two WCF Service Contracts that work perfectly by themselves (in two different hosts). Client can use them and gets the correct data back as was intended. But now I need to create a list item which is to be used by both.

Is it possible\viable to create such a list when the first host is opened and then work as a singleton between Service Contracts?

I hope I'm making sense as to what it is I'm after.

Any assistance\advise will be greatly appreciated.

Thanks in advance
Posted
Comments
Suvabrata Roy 11-Jul-12 5:33am    
You want to know how you can Share a common List between two WCF Data Contract

Am I Right ?
PJ du Preez 11-Jul-12 6:09am    
Not between two Data Contract but between two Service Contracts... on the host side. I'm currently testing a Singleton class I made that derives from List<t>, but I think I might have concurrency issues :/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900