If you have
interface IServiceA { string GetString(); }
Is there a way to share this interface beween the WCF web service project and a silverlight project.
The problem, both use different versions of System.ServiceModel
I DON'T want to generate and use proxies.
-
Place the contracts(IXyz) in their own project and reference it there. When you deploy be sure to add a reference path to the appropriate assemblies.
-
You can try to use inheritance on interfaces. Create a base interface (you can use Resharper to extract interface out of existing ones) and place it into separate class library. Then inherit your service contract interface (the one that you mark with attributes) from the base interface. Use assembly with your base interface in your Silverlight project.
0 comments:
Post a Comment