Beispiel #1
0
        /// <summary>
        /// Adds a new licenses to the list of registerd licenses.
        /// </summary>
        /// <param name="License">The license to add</param>
        public static void Add(License License)
        {
            Licenses.Add(License);

            // TODO: Add code to respect policy settings to log added licenses
        }
Beispiel #2
0
 /// <summary>
 /// Removes a spceific licenses from the list of registerd licenses
 /// </summary>
 /// <param name="License">License to remove</param>
 public static void Remove(License License)
 {
     Licenses.Remove(License);
 }
Beispiel #3
0
        /// <summary>
        /// Adds a new licenses to the list of registerd licenses.
        /// </summary>
        /// <param name="License">The license to add</param>
        public static void Add(License License)
        {
            string key = string.Format("{0}|{1}", License.Product, License.ProductVersion);

            Licenses[key] = License;
        }