Touchstone Re 2023 API Reference
GetEventSets Method (ReinsuranceAggregateLossAnalysisServiceClient)
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceAggregateLossAnalysisServiceClient Class : GetEventSets Method
Contains a GetEventSetsRequest that identifies the Business Unit Sequential Identifier (SID) and SQL Instance SID associated with the list of event sets to retrieve.
Retrieves a list of the existing event sets in a given Business Unit and SQL Server Instance.
Syntax
Public Function GetEventSets( _
   ByVal request As GetEventSetsRequest _
) As GetEventSetsResponse
Dim instance As ReinsuranceAggregateLossAnalysisServiceClient
Dim request As GetEventSetsRequest
Dim value As GetEventSetsResponse
 
value = instance.GetEventSets(request)

Parameters

request
Contains a GetEventSetsRequest that identifies the Business Unit Sequential Identifier (SID) and SQL Instance SID associated with the list of event sets to retrieve.

Return Value

A GetEventSetsResponse that contains a list of event sets in the specified SQL server instance and business unit.
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.

When you run an aggregate loss analysis on a reinsurance program or portfolio of reinsurance treaties, you supply an Event Set SID to indicate the set of stochastic, historical, or RDS events to include in the analysis.

Example
The following example shows how to retrieve a list of the existing Event Sets in a given Business Unit and SQL Server Instance using the GetEventSets() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.AggregateLossAnalysis.Api;
using System;
            
class SnippetGetEventSets
{
   private static void GetEventSets(int businessUnitSid, int sqlInstanceSid)
   {
       ReinsuranceAggregateLossAnalysisServiceClient client = new ReinsuranceAggregateLossAnalysisServiceClient();
       GetEventSetsRequest request = new GetEventSetsRequest();
       request.BusinessUnitSid = businessUnitSid;
       request.SqlInstanceSid = sqlInstanceSid;
       GetEventSetsResponse response = client.GetEventSets(request);
       if (response.Status.Code == StatusCode.Success)
       {
           foreach (var eventset in response.EventSets)
           {
               Console.WriteLine("SID: " + eventset.Sid + " Name: " + eventset.Name);
           }
      }
   }
}
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

ReinsuranceAggregateLossAnalysisServiceClient Class
ReinsuranceAggregateLossAnalysisServiceClient Members