Touchstone 11.0 API Reference
GetExposureConcentrationAnalysisLayerResults Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ExposureConcentrationAnalysisServiceClient Class : GetExposureConcentrationAnalysisLayerResults Method
Contains a GetExposureConcentrationAnalysisLayerResultsRequest 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 Layer, along with the associated Business Unit SID, SQL Instance SID, optional Paging Info, and optional Sorting Info.
Retrieves the results of a Touchstone® Geospatial Analysis by Layer.

A Layer defines a range of loss in an insurance contract. For example, one layer might cover losses up to $10M, and a second layer might cover losses from $10M to $20M.

The Geospatial Analysis for which you want to retrieve results by Layer could have a Ring, Zone, or Event accumulator. Each result in the list of Geospatial Analysis results by Layer contains the Layer ID, risk count, and accumulator type, as well as the total replacement value of the insured properties in the specified Layer.

Syntax

Parameters

request
Contains a GetExposureConcentrationAnalysisLayerResultsRequest 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 Layer, along with the associated Business Unit SID, SQL Instance SID, optional Paging Info, and optional Sorting Info.

Return Value

A GetExposureConcentrationAnalysisLayerResultsResponse containing the results of the Geospatial Analysis by Layer that you have requested, as well as information describing the actual paging layout of the analysis results.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Analysis SID to pass into this method, call the GetActivity() method. The Analysis SID is stored in the GetActivityResponse.Activity.AnalysisSid property.

Example
The following example shows how to retrieve the results of a Touchstone Geospatial Analysis by Layer using the GetExposureConcentrationAnalysisLayerResults() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ExposureConcentrationAnalysis.Api;
using AIR.Services.ExposureConcentrationAnalysis.Data;
            
class SnippetGetExposureConcentrationAnalysisLayerResultsRequest
{
    private static void GetExposureConcentrationAnalysisLayerResults(int businessUnitSid, int sqlInstanceSid, int analysisSid)
    {
        ExposureConcentrationAnalysisServiceClient ecaClient = new ExposureConcentrationAnalysisServiceClient();
        GetExposureConcentrationAnalysisLayerResultsRequest request = new GetExposureConcentrationAnalysisLayerResultsRequest();
        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 };
        GetExposureConcentrationAnalysisLayerResultsResponse response = ecaClient.GetExposureConcentrationAnalysisLayerResults(request);
            
        if (response.Status.Code == StatusCode.Success)
        {
            foreach (LayerResult result in response.LayerResults)
            {
                Console.WriteLine("Layer ID: " + result.LayerID);
                Console.WriteLine("Insured Name: " + result.InsuredName);
                Console.WriteLine("Contract ID: " + result.ContractID);
                Console.WriteLine("Total Replacement Value: " + result.TotalReplacementValue);
                Console.WriteLine("Peril: " + result.PerilDescription);
            }
        }
    }
}
Requirements

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

See Also

Reference

ExposureConcentrationAnalysisServiceClient Class
ExposureConcentrationAnalysisServiceClient Members