コード例 #1
0
 public Task<Message> StoreMessageAsync(Message message)
 {
     return _factory.ExecuteAsync<IMessageRepository, long>(
         messageRepository => messageRepository.InsertAsync(message.ToEntity())
     ).ContinueWith(task =>
     {
         message.Id = task.Result;
         return message;
     }, TaskContinuationOptions.OnlyOnRanToCompletion);
 }
コード例 #2
0
 public TweetArrivedMessage(Message message)
 {
     Message = message;
 }
コード例 #3
0
 public TweetSavedMessage(Message message)
 {
     Message = message;
 }