public RuntimeAppConfig(string guid, string name, Dictionary <string, string> variables) { this.appConfigGuid = guid; this.appConfigName = name; this.cloudBuildManifest = CloudBuildManifest.Find(); if (variables != null) { this.keyValuePairs = new List <KeyValuePair>(); foreach (var keyValuePair in variables) { this.keyValuePairs.Add(new KeyValuePair(keyValuePair.Key, keyValuePair.Value)); } } }
private void Initialize() { if (this.isInitialized == false) { this.isInitialized = true; // caching all the key/value pairs in a dictionary this.values = new Dictionary <string, string>(); for (int i = 0; i < this.keyValuePairs.Count; i++) { this.values.Add(this.keyValuePairs[i].Key, this.keyValuePairs[i].Value); } this.cloudBuildManifest = CloudBuildManifest.Find(); this.version = Application.version; this.versionAndBuildNumber = this.BuildNumber == 0 ? this.Version : string.Format("{0} ({1})", this.Version, this.BuildNumber); this.versionAndCommitId = this.CommitId == null ? this.Version : string.Format("{0} ({1})", this.Version, this.CommitId); } }