Пример #1
0
        public async void CheckForUpdates()
        {
            var ipDetails = await _ipAddressFetcher.GetCurrentIpAddressDetails();

            if (AddressInfo.Ip == ipDetails.Ip)
                return;
            //IP Address has changed
            _logger.Info("Ip Address Changed - {0}", ipDetails.Ip);
            AddressInfo = ipDetails;
            UpdateIpAddressWithUnoTelly();
        }
Пример #2
0
        public async void CheckForUpdates()
        {
            var ipDetails = await _ipAddressFetcher.GetCurrentIpAddressDetails();

            if (AddressInfo.Ip == ipDetails.Ip)
            {
                return;
            }
            //IP Address has changed
            _logger.Info("Ip Address Changed - {0}", ipDetails.Ip);
            AddressInfo = ipDetails;
            UpdateIpAddressWithUnoTelly();
        }
Пример #3
0
 public UpdateManager(IpAddressInfo info)
 {
     AddressInfo = info;
     _ipAddressFetcher = new IpAddressFetcher();
 }
Пример #4
0
 public UpdateManager(IpAddressInfo info)
 {
     AddressInfo       = info;
     _ipAddressFetcher = new IpAddressFetcher();
 }