public EsnMessagesServiceResponse ReadFeed(EsnReadMessageOptions readOptions) { var result = new EsnMessagesServiceResponse(); try { result.EsnMessages = EsnCenter.ReadFeedMessage(readOptions); } catch (Exception e) { result = new EsnMessagesServiceResponse(e); } return(result); }
public EsnMessagesServiceResponse ReadMessage(Guid schemaUId, Guid entityId, Guid messageId) { var result = new EsnMessagesServiceResponse(); try { result.EsnMessages = new [] { EsnCenter.ReadMessage(schemaUId, entityId, messageId) }; } catch (Exception e) { result = new EsnMessagesServiceResponse(e); } return(result); }
public EsnMessagesServiceResponse ReadEntityMessage(Guid schemaUId, Guid entityId, EsnReadMessageOptions readOptions) { var result = new EsnMessagesServiceResponse(); try { result.EsnMessages = EsnCenter.ReadEntityMessage(schemaUId, entityId, readOptions); } catch (Exception e) { result = new EsnMessagesServiceResponse(e); } return(result); }