Ejemplo n.º 1
0
        public void Initialize()
        {
            var commonDataPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
            var appDataPath    = Path.Combine(commonDataPath, "Photon", "CLI");

            var serverDefinitionsFilename = Path.Combine(appDataPath, "servers.json");

            Servers = File.Exists(serverDefinitionsFilename)
                ? ServerCollection.Load(serverDefinitionsFilename)
                : new ServerCollection(serverDefinitionsFilename);
        }
Ejemplo n.º 2
0
 public CommandContext()
 {
     Servers = new ServerCollection();
 }