public ScreenshotAttachment(IAttachmentContent content)
     : this(
         AttachmentType.Default,
         content,
         "screenshot.jpg",
         "image/jpeg")
 {
 }
 private ScreenshotAttachment(
     AttachmentType type,
     IAttachmentContent content,
     string fileName,
     string?contentType)
     : base(type, content, fileName, contentType)
 {
 }
Example #3
0
 /// <summary>
 /// Initializes an instance of <see cref="Attachment"/>.
 /// </summary>
 public Attachment(
     AttachmentType type,
     IAttachmentContent content,
     string fileName,
     string?contentType)
 {
     Type        = type;
     Content     = content;
     FileName    = fileName;
     ContentType = contentType;
 }