Exemplo n.º 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
        }
Exemplo n.º 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);
 }
Exemplo n.º 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;
        }