/// <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; }
/// <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); }
public MainForm() { InitializeComponent(); var options = new LicenseOptions { Password = "******", Salt = "saltsaltsalt", CheckUrl = null, SubmitUrl = null, }; licenser = Licenser.Create(options); sys = new WinSys(); }
public void SetUp() { var options = new LicenseOptions { Password = PASSWORD, Salt = SALT, CheckUrl = null, SubmitUrl = null, Company = COMPANY, Product = PRODUCT, }; licenser = Licenser.Create(options); }