/// <summary> /// The with qo s. /// </summary> /// <param name="builder"> /// The builder. /// </param> /// <param name="qosParams"> /// The qos params. /// </param> /// <typeparam name="T"> /// </typeparam> /// <returns> /// The <see cref="IReceiverConfigurator"/>. /// </returns> public static IReceiverConfigurator <T> WithQoS <T>(this IReceiverConfigurator <T> builder, QoSParams qosParams) where T : class { ReceiverConfiguration configuration = ((TypedReceiverConfigurationDecorator <T>)builder).Configuration; WithQoS(configuration, qosParams); return(builder); }
/// <summary> /// The with qo s. /// </summary> /// <param name="builder"> /// The builder. /// </param> /// <param name="qosParams"> /// The qos params. /// </param> /// <returns> /// The <see cref="IReceiverConfigurator"/>. /// </returns> public static IReceiverConfigurator WithQoS(this IReceiverConfigurator builder, QoSParams qosParams) { ((RabbitReceiverOptions)((ReceiverConfiguration)builder).Options).QoS = qosParams; return(builder); }