Touchstone Re 2023 API Reference
GetEventExposureConcentrationAnalysisResults Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ExposureConcentrationAnalysisServiceClient Class : GetEventExposureConcentrationAnalysisResults Method
Contains a GetEventExposureConcentrationAnalysisResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) of the Event 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.
Retrieves the results of a Touchstone® Event Geospatial Analysis, including the Event Result ID, name, and peril description for each Event Result, as well as the total risk count and the total replacement value of the insured properties due to the damage caused by the Event.
Syntax
Public Function GetEventExposureConcentrationAnalysisResults( _
   ByVal request As GetEventExposureConcentrationAnalysisResultsRequest _
) As GetEventExposureConcentrationAnalysisResultsResponse
Dim instance As ExposureConcentrationAnalysisServiceClient
Dim request As GetEventExposureConcentrationAnalysisResultsRequest
Dim value As GetEventExposureConcentrationAnalysisResultsResponse
 
value = instance.GetEventExposureConcentrationAnalysisResults(request)
public GetEventExposureConcentrationAnalysisResultsResponse GetEventExposureConcentrationAnalysisResults( 
   GetEventExposureConcentrationAnalysisResultsRequest request
)

Parameters

request
Contains a GetEventExposureConcentrationAnalysisResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) of the Event 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 GetEventExposureConcentrationAnalysisResultsResponse containing the results of the Event Geospatial Analysis 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 Event Geospatial Analysis using the GetEventExposureConcentrationAnalysisResults() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ExposureConcentrationAnalysis.Api;
using AIR.Services.ExposureConcentrationAnalysis.Data;
            
class SnippetGetEventExposureConcentrationAnalysisResultsRequest
{
    private static void GetEventExposureConcentrationAnalysisResults(int businessUnitSid, int sqlInstanceSid, int analysisSid)
    {
        ExposureConcentrationAnalysisServiceClient ecaClient = new ExposureConcentrationAnalysisServiceClient();
        GetEventExposureConcentrationAnalysisResultsRequest request = new GetEventExposureConcentrationAnalysisResultsRequest();
        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 };
    
        GetEventExposureConcentrationAnalysisResultsResponse response = ecaClient.GetEventExposureConcentrationAnalysisResults(request);
            
        if (response.Status.Code == StatusCode.Success)
        {
            foreach (EventResult eventResult in response.EventResults)
            {
                Console.WriteLine("Accumulator SID: " + eventResult.ID);
                Console.WriteLine("Name: " + eventResult.Name);
                Console.WriteLine("Magnitude: " + eventResult.Magnitude);
                Console.WriteLine("Year: " + eventResult.Year);
                Console.WriteLine("Total Replacement Value: " + eventResult.TotalReplacementValue);
                Console.WriteLine("Risk Count: " + eventResult.RiskCount);
                Console.WriteLine("Location Count: " + eventResult.LocationCount);
                Console.WriteLine("Peril: " + eventResult.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