Пример #1
0
        public bool Auth(string key)
        {
            if (!Key.Validation(key))
            {
                ResponseStatus = "Incorrect License Key!";
                return(false);
            }
            if (!Internet.Connection())
            {
                ResponseStatus = "Internet Connection is Required!";
                return(false);
            }
            Dead.Check();
            this.LicenseKey = key;

            var api = new Api();
            var LicenseCheckingResult = api.Check(this);

            this.ResponseStatus = api.ResponseStatus;
            api = null;

            GC.Collect();
            GC.WaitForPendingFinalizers();

            return(LicenseCheckingResult);
        }