コード例 #1
0
        public void SetConfigInformation(string path, IConfiguration config)
        {
            APIConnectionInformation info = new APIConnectionInformation();

            if (FileWrap.DoesFileExist(path))
            {
                info = this.FileInformationGetter.ReadFile(path);
            }
            else
            {
                this.CheckDirectory(path);
            }

            var apiConfig = config as LocalSetUpConfiguration;

            config.ApiConnection.Update(info);
            this.SetConfigFile(path, config.ApiConnection);
        }