RE: License detection of runtime vs. designtime by timhuang
timhuang
Thu Nov 20 00:06:47 CST 2003
Hi Mark,
Thanks for your post. Since you want to license to developers and don't
license the runtimes that they deliver to their customers, I believe that
you can use the "design time license".
As you know, licensing is desinged into runtim in the .NET Framework. The
piece that holds licensing together in .NET is the LicenseManager. The
LicenseManager is part of the runtime and whenever a class is instantiated,
the LicenseManager accesses the proper validation mechanism for the control
or component. Classes are marked as licensed by adorning the class with the
LicenseProviderAttribute. This attribute also specifies the type of
validation that occurs.
For the "design time license", a license provider need to find for a valid
license at design time. The license will be converted into a license key
and embedded into the executing assembly when building, so that it will run
properly on the client side. As you can see, an application using your
component cannot be built properly without the license.
For detailed information on .NET Licensing, I recommend you the following
articles: