在C#.NET如何使用RSA和许可提供一流的许可? [英] In C# .net how to licensing using RSA and license provider class?
问题描述
我想提供许可证简单的控制台应用程序。 我用RSACrypttoServiceProvider级加密和解密。 我也想用LicFileLicenseProvider类为我的应用程序授予许可。 如何继承LicFileLicenseProvider类,并使用它? Namespase.classname.lic文件中包含的文字 - Namespase.classname是有执照的组成部分。 - 如何修改呢?如果我修改这一点,并使用验证或的isValid方法将分别返回空值和错误的结果。 请建议的解决方案。
I want to provide license to the simple console application. I used RSACrypttoServiceProvider class to encrypt and decrypt. I also want to use LicFileLicenseProvider class to grant license for my application. how to inherit LicFileLicenseProvider class and use it? Namespase.classname.lic file contains text - "Namespase.classname is a licensed component." - how to modify this ? if I modify this and use Validate OR isvalid method it will return null and false results respectively. please suggest solution.
推荐答案
看的http:// www.drdobbs.com/184416695;jsessionid=4JVBZKOX0D5NRQE1GHRSKH4ATMY32JVN 的。搜索 DerivedLicenseProvider
。就是如果不是你在找什么?另一篇文章 HTTP://www.$c$ cguru.com/csharp/.net/net_framework/licensing/article.php/c5469 不给你关于继承 LicFileLicenseProvider
的一个直接的例子,但是如果你还不知道吧,你应该看它。
Look at http://www.drdobbs.com/184416695;jsessionid=4JVBZKOX0D5NRQE1GHRSKH4ATMY32JVN. Search for DerivedLicenseProvider
. Is if not what you are looking for? Another article http://www.codeguru.com/csharp/.net/net_framework/licensing/article.php/c5469 don't give you a direct example about inheritance of LicFileLicenseProvider
, but if you not yet know it, you should read it.
这篇关于在C#.NET如何使用RSA和许可提供一流的许可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!