At a regular interval, the QlmFloatingLicenseMgr validates that the license of the current node is still registered. This is to address the situation where a node is purposely or inadvertently released by a user via the QLM Floating License Viewer. When a running node determines that it is no longer registered as running, it will automatically attempt to re-register itself. Re-registration will be successful if there is a free license available. If all licenses have been consumed by other nodes, the QlmFloatingLicenseViolationEvent is fired. When this event is fired, you can decide what action to take in your application, for example, quit the application.
C#: event QlmFloatingLicenseEventHandler QlmFloatingLicenseViolationEvent
QlmFloatingLicenseMgr floatingLicense = new QlmFloatingLicenseMgr();
floatingLicense.QlmFloatingLicenseViolationEvent += new QlmFloatingLicenseEventHandler(OnFloatingLicenseViolationEvent);
public void OnFloatingLicenseViolationEvent(object sender, QlmFloatingLicenseViolationEventArgs e)
MessageBox.Show("License violation detected. Status: " + e.Status);
Article is closed for comments.