예제 #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));
        }
예제 #2
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).Trim(),
                ServerDensityKey = AgentKey,
                PluginManifestLocation = options.ManifestLocation
            };


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