public Genesyslab.Platform.Commons.Protocols.IMessage GetEmailAttachment(string documentID, bool canOpen) { this._logger.Info("Trying to retrieve email attachment for the document id: " + documentID); RequestGetDocument requestDocument = null; try { requestDocument = RequestGetDocument.Create(); requestDocument.DocumentId = documentID; if (this.UCSServer != null) { if (this.UCSServer.State == Genesyslab.Platform.Commons.Protocols.ChannelState.Opened) { return(this.UCSServer.Request(requestDocument)); } } } catch (Exception generalException) { this._logger.Error("Error occurred while sending GetEmailAttachment request to UCS, exception:" + generalException); } return(null); }