/// <summary> /// Добавить запрашиваемый атрибут /// </summary> /// <param name="attr"></param> /// <returns></returns> public ReceiveMessageRequest SetMessageAttribute(string value) { if (string.IsNullOrWhiteSpace(value)) { throw new ArgumentNullException(nameof(value), "Name of attribute cannot was null or empty"); } MessageAttributeName.Add(value); return(this); }
/// <summary> /// запросить все пользовательские атрибуты сообщений /// </summary> /// <returns></returns> public ReceiveMessageRequest SetAllMessageAttribute() { MessageAttributeName.Clear(); MessageAttributeName.Add(MessageSystemAttributeName.All); return(this); }