开发者

A strategy to add more datacontracts/DTOs to a WCF Service without recompiling the Service Project/Solution

I am currently developing a WCF service that will evolve over time to include new DTOs. I am currently using MEF withing the service implementation to export the webservice object. I have the WCF service project and the datacontracts' project within the same solution. For now, both the projects are compiled under one solution.

Essentially what I want to do is to have a scheme that I can incorporate into the WCF service project so that I can add new datacontracts in future. This scheme does not have to use MEF. These new datacontracts are to be developed in a different solution but under the same namespace (or not). After compilation, I would only need to drop the new datacontracts' assembly in the ..\bin folder and restart the service. The service would then pickup the new datacontracts so that they can be spewed into the WSDL.

I hope this is specif开发者_如何学JAVAic enough.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜