plugin GracePeriod

can we change this EnvironmentManager.Instance.SystemLicense.GracePeriod to other values than 30

will the plugin not activated within 30 days shows graceperiod expired?

You cannot change the SystemLicense. You can, however, implement licensing for your plugin and in there implement a grace period of any length you want for the plugin. Have a look at the Site License sample for an example of how to do that: http://doc.developer.milestonesys.com/html/index.html?base=samples/sitelicdoc.html&tree=tree_1.html

Thanks for the reply.

We know about TrialMode and Expire expiry date.

We have provided the license for full version and want to make sure user activates the license so we can see how many channel has been used.

we use LicenseInformation.CounterMethodEnum.CountByCounter for channels

VideoOS.Platform.License.ResolvedLicenseCount resLC = new ResolvedLicenseCount(PluginId, _myServerLicense);

  if(resLC.Available != null && resLC.Available.HasValue)       

    NoOfChannelTaken = (int)resLC.Available;       

  NoOfChannelUsed = resLC.Activated;

  NoOfTotChannel = resLC.TotalActivated - resLC.Activated;

so wanted to know more about

public class ResolvedLicenseCount

{

public ResolvedLicenseCount(Guid pluginId, LicenseInformation licenseRequest);

public int Activated { get; set; }

public int? Available { get; set; }

public int Expired { get; set; }

public int Missing { get; set; }

public int Temporary { get; set; }

public int TotalActivated { get; set; }

public int Used { get; set; }

}

do the channels come under missing/temporary/expired if not user activates after some time

The ResolvedLicenseCount class does not take expiry date into consideration if using the CountByCounter scheme. It will add any count used and not available in Activated to the Temporary count. You will then have to look at the overall expiry date for your plugin license to check whether the license is itself valid or not.

You cannot use grace period for individual channels when using CountByCounter scheme as there is no way to know in which order channels were added. To do grace-per-channel you will need to use the CountByItemIdentifications instead.

We just have one item and save all the required thing in the properties