Example #1
0
        private static void GenerateConfiguration(string AccountName, string AgentKey)
        {
            var configLocation = Path.Combine(options.InstallLocation, "settings.json");

            TetherAgentConfig agentConfig = new TetherAgentConfig
            {
                CheckInterval          = 60,
                ServerDensityUrl       = options.ServerDensityPostLocation.Replace("{account}", AccountName).Replace("{agentkey}", AgentKey).Trim(),
                ServerDensityKey       = AgentKey,
                PluginManifestLocation = options.ManifestLocation
            };


            File.WriteAllText(configLocation, JsonConvert.SerializeObject(agentConfig));
        }
        private static void GenerateConfiguration(string AccountName, string AgentKey)
        {
            var configLocation = Path.Combine(options.InstallLocation, "settings.json");

            TetherAgentConfig agentConfig = new TetherAgentConfig
            {
                CheckInterval = 60,
                ServerDensityUrl = options.ServerDensityPostLocation.Replace("{account}", AccountName).Trim(),
                ServerDensityKey = AgentKey,
                PluginManifestLocation = options.ManifestLocation
            };


            File.WriteAllText(configLocation, JsonConvert.SerializeObject(agentConfig));
        }