Beispiel #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;
        }
Beispiel #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);
        }
Beispiel #3
0
        public MainForm()
        {
            InitializeComponent();

              var options = new LicenseOptions
              {
            Password = "******",
            Salt = "saltsaltsalt",
            CheckUrl = null,
            SubmitUrl = null,
              };
              licenser = Licenser.Create(options);

              sys = new WinSys();
        }
Beispiel #4
0
        public void SetUp()
        {
            var options = new LicenseOptions
              {
            Password = PASSWORD,
            Salt = SALT,
            CheckUrl = null,
            SubmitUrl = null,
            Company = COMPANY,
            Product = PRODUCT,
              };

              licenser = Licenser.Create(options);
        }