/// <summary> /// Returns all welcome regulation rules associated with specified regulation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='regulationId'> /// The regulation id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetWelcomeRegulationRulesByRegulationIdAsync(this IRegulationAPI operations, string regulationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWelcomeRegulationRulesByRegulationIdWithHttpMessagesAsync(regulationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }