コード例 #1
0
        public IMessage PublishMessage(IPublishMessageParameters parameter)
        {
            if (parameter == null)
            {
                throw new ArgumentNullException("Parameter cannot be null.");
            }

            var publishedMessageDTO = _messageQueryExecutor.PublishMessage(parameter);

            return(_messageFactory.GenerateMessageFromMessageDTO(publishedMessageDTO));
        }
コード例 #2
0
        public IMessage PublishMessage(IMessageDTO messageDTO)
        {
            var publishedMessageDTO = _messageQueryExecutor.PublishMessage(messageDTO);

            return(_messageFactory.GenerateMessageFromMessageDTO(publishedMessageDTO));
        }
コード例 #3
0
 public Task <ITwitterResult <ICreateMessageDTO> > PublishMessage(IPublishMessageParameters parameters, ITwitterRequest request)
 {
     return(_messageQueryExecutor.PublishMessage(parameters, request));
 }