Submits a request to retrieve the list of all company loss file (CLF) sets or company loss association.
A company loss file set can include a set of company loss files or company loss associations including company loss file set name, company name, program names, portfolio names, expiration date, compatible model versions, and so on.
Parameters
- request
- Contains a GetAllCompanyLossSetsRequest that specifies the Business Unit SID and SQL Instance SID associated with the CLF or company loss association.
Return Value
A
GetAllCompanyLossSetsResponse that contains the
CompanyLossSetsField that uniquely identifies the asynchronous web service call that you made to retrieve the list of CLF sets using the GetAllCompanyLossSets() method.
The following example shows how to retrieve the list of all company loss file sets or company loss association using the
GetAllCompanyLossSets()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyLossSetManagement.Api;
using System;
class SnippetGetAllCompanyLossSets
{
private static void GetAllCompanyLossSets(int businessUnitSid, int sqlInstanceSid, int programSid, int subjectProgramSid, int inuringProgramSid)
{
ReinsuranceCompanyLossSetManagementServiceClient client = new ReinsuranceCompanyLossSetManagementServiceClient();
GetAllCompanyLossSetsRequest request = new GetAllCompanyLossSetsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ClsInstalledBeforeDate = DateTime.Now.AddYears(-1);
request.ModelCompatibility = AIR.Services.Reinsurance.Common.Data.ModelCompatibility.Latest;
request.ProgramExpiresBeforeDate = DateTime.Now.AddYears(-1);
GetAllCompanyLossSetsResponse response = client.GetAllCompanyLossSets(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (var clfSet in response.CompanyLossSets)
{
Console.WriteLine("Sid: " + clfSet.CompanyLossSetSid);
Console.WriteLine("Name: " + clfSet.CompanyLossSetName);
Console.WriteLine("InstalledBy: " + clfSet.InstalledBy);
Console.WriteLine("LossSetExtension: " + clfSet.LossSetExtension);
Console.WriteLine("LossSetSize: " + clfSet.LossSetSize);
Console.WriteLine("PortfolioNames: " + clfSet.PortfolioNames);
Console.WriteLine("RdsModelIds: " + clfSet.RdsModelIds);
Console.WriteLine("StochasticModelIds: " + clfSet.StochasticModelIds);
}
}
}
}
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