Exemple #1
0
        private DexihActiveAgent GetActiveAgent()
        {
            var activeAgent = new DexihActiveAgent()
            {
                Name              = _remoteSettings.AppSettings.Name,
                IsRunning         = true,
                DataPrivacyStatus = _remoteSettings.DataPrivacyStatus(),
                DownloadUrls      = _remoteSettings.GetDownloadUrls(),
                IpAddress         = _remoteSettings.Runtime.ExternalIpAddress,
                IsEncrypted       = _remoteSettings.Network.EnforceHttps,
                InstanceId        = _sharedSettings.InstanceId,
                User              = _remoteSettings.AppSettings.User,
                UpgradeAvailable  = _remoteSettings.UpgradeAvailable(),
                AutoUpgrade       = _remoteSettings.AppSettings.AutoUpgrade,
                Version           = _remoteSettings.Runtime.Version,
                LatestVersion     = _remoteSettings.Runtime.LatestVersion,
                LatestDownloadUrl = _remoteSettings.Runtime.LatestDownloadUrl,
                RemoteAgentKey    = _remoteSettings.Runtime.RemoteAgentKey,
                NamingStandards   = _remoteSettings.NamingStandards
            };

            return(activeAgent);
        }