Example #1
0
        /// <summary>
        ///   Factory method
        /// </summary>
        /// <param name="options">The license options</param>
        /// <returns>A new Licenser</returns>
        public static Licenser Create(LicenseOptions options)
        {
            var storage = Bootstrapper.GetStorage(options);
              var checker = Bootstrapper.GetLicenseChecker(options);

              var licenser = new Licenser(storage, checker);
              licenser.Initialize();

              return licenser;
        }
Example #2
0
        /// <summary>
        ///   Factory method
        /// </summary>
        /// <param name="options">The license options</param>
        /// <returns>A new Licenser</returns>
        public static Licenser Create(LicenseOptions options)
        {
            var storage = Bootstrapper.GetStorage(options);
            var checker = Bootstrapper.GetLicenseChecker(options);

            var licenser = new Licenser(storage, checker);

            licenser.Initialize();

            return(licenser);
        }