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