private void Initialize() { if (_inialized) { return; } var scope = new Scope(this); _updateurl = new Uri(UpdateUrlTemplate.Interpolate(scope)); _mappingquery = MappingTemplate.Interpolate(scope); _nextquery = NextQueryTemplate.Interpolate(scope); _mappingurl = new Uri(MappingUrlTemplate.Interpolate(scope)); _geturl = new Uri(GetUrlTemplate.Interpolate(scope)); _indexexistsurl = new Uri(IndexExistsUrlTemplate.Interpolate(scope)); _http = new HttpClient(); EnsureIndex(); _inialized = true; }
public static string GetUrlTemplate(GetUrlTemplate getUrlTemplate) => getUrlTemplate(FormatParameter("width"), FormatParameter("height"), FormatParameter("quality"));