public void Add(string dataSourceSubType, string dataSourceName, TilingScheme schema) { string key = dataSourceSubType == null ? "default" : dataSourceSubType; SubTypeSchemas s2; if (!_TSchemas.ContainsKey(key)) { s2 = new SubTypeSchemas(); _TSchemas.Add(key, s2); } else { s2 = _TSchemas[key]; } s2.Add(dataSourceName, schema); }
public void SetDownloadUrl(string dataSourceSubType, string dataSourceName, string url) { string key = dataSourceSubType == null ? "default" : dataSourceSubType; SubTypeSchemas s2; if (!_TSchemas.ContainsKey(key)) { s2 = new SubTypeSchemas(); _TSchemas.Add(key, s2); } else { s2 = _TSchemas[key]; } s2.SetDownloadUrl(dataSourceName, url); }