public ArcGISLegendResponse GetLegendInfo(string serviceUrl, ICredentials credentials = null) { _webRequest = CreateRequest(serviceUrl, credentials); var response = _webRequest.GetSyncResponse(_timeOut); _legendResponse = GetLegendResponseFromWebresponse(response); return _legendResponse; }