.net hide implementation and provide interface [closed]

▼魔方 西西 提交于 2019-12-12 06:47:21

问题


I am working with several developers who develop .net components for me.

I manage the licensing mechanism and want to hide the implementation.

I would like to just provide them the interface, with for example the methodIsLicenseValid() so they must use it in the code but cannot access the implementation.

Which pattern or technology should I use to reach that objective?


回答1:


You should be using a Web Service to expose the methodIsLicenseValid(), and let your devs invoke it whenever necessary.

This will be suitable for your production environment anyways and also will allow you to change the implementation of the methodIsLicenseValid(), without causing hasles to the devs, as opposed to providing a library/dll to them



来源:https://stackoverflow.com/questions/25151771/net-hide-implementation-and-provide-interface

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!