public byte[] GetAttachmentData(int attachmentId)
        {
            try
            {
                var attachmentData = _client.GetAttachmentDataStreamedBasicAsync(_connectionOptions.Value.UserName, _connectionOptions.Value.Password, attachmentId).Result.Body.GetAttachmentDataStreamedBasicResult;
                _client.Close();

                return(attachmentData);
            }
            catch (TimeoutException)
            {
                _client.Abort();
                throw;
            }
            catch (CommunicationException)
            {
                _client.Abort();
                throw;
            }
        }