Retrieves the results of a Touchstone® Ring Geospatial Analysis, including the Ring ID and the data describing the Ring's centroid, such as its
name, latitude, longitude, geocode match level, city, country, and postal code.
Parameters
- request
- Contains a GetRingExposureConcentrationAnalysisResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) of the Ring Geospatial Analysis for which you want to retrieve the results, along with the associated Business Unit SID, SQL Instance SID, optional Paging Info, and optional Sorting Info.
Return Value
A
GetRingExposureConcentrationAnalysisResultsResponse containing the
results of the Ring Geospatial Analysis that you have requested, as well as information describing the actual
paging layout of the analysis results.
The following example shows how to retrieve the results of a Touchstone Ring Geospatial Analysis using the
GetRingExposureConcentrationAnalysisResults()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ExposureConcentrationAnalysis.Api;
using AIR.Services.ExposureConcentrationAnalysis.Data;
class SnippetGetRingExposureConcentrationAnalysisResultsRequest
{
private static void GetRingExposureConcentrationAnalysisResults(int businessUnitSid, int sqlInstanceSid, int analysisSid)
{
ExposureConcentrationAnalysisServiceClient ecaClient = new ExposureConcentrationAnalysisServiceClient();
GetRingExposureConcentrationAnalysisResultsRequest request = new GetRingExposureConcentrationAnalysisResultsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.AnalysisSid = analysisSid;
/// Implement logic to loop through all the records.
int page = 1; int pageSize = 20;
request.PagingInfo = new PagingInfo { PageNumber = page, PageSize = pageSize };
GetRingExposureConcentrationAnalysisResultsResponse response = ecaClient.GetRingExposureConcentrationAnalysisResults(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (RingResult ring in response.RingResults)
{
Console.WriteLine("Accumulator SID: " + ring.ID);
Console.WriteLine("Name: " + ring.Name);
Console.WriteLine("Peril: " + ring.PerilDescription);
Console.WriteLine("Total Risk Count: " + ring.RiskCount);
Console.WriteLine("Total Replacement Value: " + ring.TotalReplacementValue);
}
}
}
}
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2