且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

.net隐藏实现并提供接口

更新时间:2022-03-24 22:32:27

您应该使用 Web服务来公开 methodIsLicenseValid(),并让您的开发人员调用它会在必要时显示。

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

这将适用于您的生产环境,并且还允许您更改methodIsLicenseValid()的实现,而不会导致开发人员使用hasles,而不是向他们提供库/ dll

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