Пример #1
0
        public void InitializeID()
        {
            string id = ADSFile.LoadString(this.ADS_ID, this.Path, true);

            if (!id.IsNullOrWhiteSpace())
            {
                this.ID = id;
                return;
            }


            this.ID = AMUID.Identifier;

            if (!this.ID.IsNullOrWhiteSpace())
            {
                ADSFile.SaveString(this.ADS_ID, this.ID, this.Path, true);
                this.InnerRaportRequest = true;
                return;
            }


            string aud = AUID.NewString();

            if (!aud.IsNullOrWhiteSpace())
            {
                this.ID = aud;
                ADSFile.SaveString(this.ADS_ID, this.ID, this.Path, true);
                this.InnerRaportRequest = true;
                return;
            }
        }
Пример #2
0
        public void InitializePublicIP()
        {
            string ip = ADSFile.LoadString(this.ADS_PublicIP, this.Path, true);

            if (ip.IsNullOrWhiteSpace())
            {
                this.PublicIP = null;
            }
            else
            {
                PublicIP = ip;
            }
        }