I am looking to license some indicators i have customized with proprietary numbers and functions.
As an example
EMA.cs
I want to change the default numbers to my own and allow people to temporarily try them out as a trial period.
How can i use the license code given from Agile.NET software with EMA.cs?
Agile.NET code given was this
using System;
using System.ComponentModel;
using AgileDotNet.Licensing;
namespace SecuredNamespace
{
[LicenseProvider(typeof(AgileDotNetLicenseProvider) )]
public class SecuredComponent
{
public SecuredComponent()
{
license = LicenseManager.Validate(this.GetType(), this) as AgileDotNetLicense;
}
public SecuredComponent(string licenseContent)
{
AgileDotNetLicense license = AgileDotNetLicenseProvider.CreateLicenseFromString (licenseContent);
license.Save("MyLic");
license = LicenseManager.Validate(this.GetType(), this) as AgileDotNetLicense;
}
public void ExecuteProtectedMethod()
{
if (license.IsTrial)
{
// Add your code here
}
else
{
// Add your code here
}
}
private AgileDotNetLicense license;
}
}
Comment