示例#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));
        }