Skip to content

Commit 6b45bdd

Browse files
Mpdreamzrusscam
authored andcommitted
added xmldocs that notify the user attachments are not available before watcher 2.3
1 parent d377118 commit 6b45bdd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Nest/XPack/Watcher/Action/Email/EmailAction.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public EmailAction(string name) : base(name) {}
6262

6363
public EmailPriority? Priority { get; set; }
6464

65+
/// <summary>
66+
/// Attach an attachment to the email, only available since watcher 2.3 and up.
67+
/// </summary>
6568
public IEmailAttachments Attachments { get; set; }
6669
}
6770

@@ -109,6 +112,9 @@ public EmailActionDescriptor Body(Func<EmailBodyDescriptor, IEmailBody> selector
109112

110113
public EmailActionDescriptor Priority(EmailPriority priority) => Assign(a => a.Priority = priority);
111114

115+
/// <summary>
116+
/// Attach an attachment to the email, only available since watcher 2.3 and up.
117+
/// </summary>
112118
public EmailActionDescriptor Attachments(Func<EmailAttachmentsDescriptor, IPromise<IEmailAttachments>> selector) =>
113119
Assign(a => a.Attachments = selector?.Invoke(new EmailAttachmentsDescriptor())?.Value);
114120
}

0 commit comments

Comments
 (0)