How to find "in grace"

I am a rather basic C# programmer so would like some clues about how to find the count of devices “In Grace”.

I played with the ConfigApiClient sample and can get the value I am looking for under:

  • License information
    • License information details
      • Device License
        • In grace period

I have looked around in the SDK documentation and see an “InGrace” property for the VideoOS.Platform.ConfigurationItems.LicenseDetailChildItem class.

My problem is I want to create a simple console app that will spit out this value. Unfortunately, I cannot figure out where the ConfigApiClient gets this information and, while I thought I might be getting somewhere with the VideoOS.Platform.ConfigurationItems.LicenseDetailChildItem class, it does not show me anything. (Of course, I might just be doing it wrong.)

Can you give me any clues or point me in the right direction?

Is this class what I want:

VideoOS.Platform.ConfigurationItems.LicenseDetailChildItem

Or should I be looking elsewhere?

Thanks,

Kevin

This works for me.

var ms = new VideoOS.Platform.ConfigurationItems.ManagementServer(Configuration.Instance.ServerFQID);
var licDevices = ms.LicenseInformationFolder.LicenseInformations.First().LicenseDetailFolder.LicenseDetailChildItems.FirstOrDefault(x => x.LicenseType == "Device License");
var licGrace = licDevices.InGrace;

Works for me too!

Thanks much Bo.

Kevin Glick
App-Techs Corporation
505 Willow Lane
Lancaster, PA 17601
(717) 735-0848 x113