PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Samples/Blog/Bifrost.Samples.Blog.Sagas/Posts/Comments.cs

#
C# | 24 lines | 22 code | 2 blank | 0 comment | 0 complexity | 29e6dae71b4d4c932a24c7d3461d85ad MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using Bifrost.Sagas;
  3. using Bifrost.Samples.Blog.Events.Posts;
  4. namespace Bifrost.Samples.Blog.Sagas.Posts
  5. {
  6. public class Comments : Chapter
  7. {
  8. public string Author { get; set; }
  9. public string Comment { get; set; }
  10. public string EMail { get; set; }
  11. public string Url { get; set; }
  12. public DateTime Occured { get; set; }
  13. public void Process(CommentAdded @event)
  14. {
  15. Author = @event.Author;
  16. Comment = @event.Comment;
  17. EMail = @event.EMail;
  18. Url = @event.Url;
  19. Occured = @event.Occured;
  20. }
  21. }
  22. }