/// <summary>
 /// GetAttachment
 /// </summary>
 /// <remarks>
 /// Get the named view as binary content
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='attachmentId'>
 /// attachment id
 /// </param>
 /// <param name='viewId'>
 /// View id from attachmentInfo
 /// </param>
 public static Stream GetAttachment(this IAttachments operations, string attachmentId, string viewId)
 {
     return(operations.GetAttachmentAsync(attachmentId, viewId).GetAwaiter().GetResult());
 }