Retrieves the results of a Touchstone® Geospatial Analysis by
Contract.
The Geospatial Analysis for which you want to retrieve results by Contract could have a Ring, Zone, or Event accumulator. Each result in the list of Geospatial Analysis results by Contract contains the Contract ID, name of the insured, and accumulator type, as well as the total risk count and total replacement value of the insured properties in the specified Contract.
Parameters
- request
- Contains a GetExposureConcentrationAnalysisContractResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) and Accumulator SID of the Geospatial Analysis for which you want to retrieve the results by Contract, along with the associated Business Unit SID, SQL Instance SID, optional Paging Info, and optional Sorting Info.
Return Value
A
GetExposureConcentrationAnalysisContractResultsResponse containing the
results of the Geospatial Analysis by Contract 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 Geospatial Analysis by Contract using the
GetExposureConcentrationAnalysisContractResults()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ExposureConcentrationAnalysis.Api;
using AIR.Services.ExposureConcentrationAnalysis.Data;
class SnippetGetExposureConcentrationAnalysisContractResultsRequest
{
private static void GetExposureConcentrationAnalysisContractResults(int businessUnitSid, int sqlInstanceSid, int analysisSid, int accumulatorSid)
{
ExposureConcentrationAnalysisServiceClient ecaClient = new ExposureConcentrationAnalysisServiceClient();
GetExposureConcentrationAnalysisContractResultsRequest request = new GetExposureConcentrationAnalysisContractResultsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.AnalysisSid = analysisSid;
request.AccumulatorSid = accumulatorSid;
/// Implement logic to loop through all the records.
int page = 1; int pageSize = 20;
request.PagingInfo = new PagingInfo { PageNumber = page, PageSize = pageSize };
GetExposureConcentrationAnalysisContractResultsResponse response = ecaClient.GetExposureConcentrationAnalysisContractResults(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (ContractResult result in response.ContractResults)
{
Console.WriteLine("Contract ID: " + result.ContractID + " -----------------------");
Console.WriteLine("Insured Name: " + result.InsuredName);
Console.WriteLine("Total Replacement Value: " + result.TotalReplacementValue);
Console.WriteLine("Risk Count: " + result.RiskCount);
Console.WriteLine("Location Count: " + result.LocationCount);
Console.WriteLine("Peril: " + result.PerilDescription);
}
}
}
}
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