Touchstone Re 2023 API Reference
SubmitLossMarketShareCalculation Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceCompanyLossSetManagementServiceClient Class : SubmitLossMarketShareCalculation Method
Contains a SubmitLossMarketShareCalculationRequest that specifies the Business Unit SID and SQL Instance SID associated with the CLF to use to compute the loss market share, as well as the LossMarketShareCalculationOptions object that enables you to configure the computation job.
Submits a request to compute a loss market share based on a company loss file (CLF) set.

A loss market share represents a given company’s share of industry-wide losses.

Syntax

Parameters

request
Contains a SubmitLossMarketShareCalculationRequest that specifies the Business Unit SID and SQL Instance SID associated with the CLF to use to compute the loss market share, as well as the LossMarketShareCalculationOptions object that enables you to configure the computation job.

Return Value

A SubmitLossMarketShareCalculationResponse that contains the Activity SID that uniquely identifies the asynchronous web service call that you made to submit the computation job.
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 CLF Set SID to pass into this method, call the GetCompanyLossSets() method.

A loss market share represents a given company’s share of industry-wide losses.

Example
The following example shows how to submit a loss market share computation for a CLF using the SubmitLossMarketShareCalculation() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyLossSetManagement.Api;
using System;
class SnippetSubmitLossMarketShareCalculation
private static void SubmitLossMarketShareCalculation(int businessUnitSid, int sqlInstanceSid, LossMarketShareCalculationOptions OptionsField)
   {
   ReinsuranceCompanyLossSetManagementServiceClient client = new ReinsuranceCompanyLossSetManagementServiceClient();
   SubmitLossMarketShareCalculationRequest request = new SubmitLossMarketShareCalculation();
        var client = new ReinsuranceCompanyLossSetManagementServiceClient();        
        var request = new SubmitLossMarketShareCalculation();
        request.BusinessUnitSid = 2;
        request.SqlInstanceSid = 2;
        request.OptionsField = LossMarketShareCalculationOptions;
        SubmitLossMarketShareCalculationResponse response = client.SubmitLossMarketShareCalculation(request);
            if (response.Status.Code == StatusCode.Success)
                 {
                    foreach (var clfSet in response.CompanyLossSets)
                    {
                        Console.WriteLine("Activity Sid: " + response.ActivitySid);
                        }
                }
  }
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

ReinsuranceCompanyLossSetManagementServiceClient Class
ReinsuranceCompanyLossSetManagementServiceClient Members