Beispiel #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);
        }
Beispiel #2
0
 public CommandContext()
 {
     Servers = new ServerCollection();
 }