/// <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); }