public IMessage PublishMessage(IPublishMessageParameters parameter) { if (parameter == null) { throw new ArgumentNullException("Parameter cannot be null."); } var publishedMessageDTO = _messageQueryExecutor.PublishMessage(parameter); return(_messageFactory.GenerateMessageFromMessageDTO(publishedMessageDTO)); }
public IMessage PublishMessage(IMessageDTO messageDTO) { var publishedMessageDTO = _messageQueryExecutor.PublishMessage(messageDTO); return(_messageFactory.GenerateMessageFromMessageDTO(publishedMessageDTO)); }
public Task <ITwitterResult <ICreateMessageDTO> > PublishMessage(IPublishMessageParameters parameters, ITwitterRequest request) { return(_messageQueryExecutor.PublishMessage(parameters, request)); }