/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
- using System;
- using Bifrost.Sagas;
- using Bifrost.Samples.Blog.Events.Posts;
-
- namespace Bifrost.Samples.Blog.Sagas.Posts
- {
- public class Comments : Chapter
- {
- public string Author { get; set; }
- public string Comment { get; set; }
- public string EMail { get; set; }
- public string Url { get; set; }
- public DateTime Occured { get; set; }
-
- public void Process(CommentAdded @event)
- {
- Author = @event.Author;
- Comment = @event.Comment;
- EMail = @event.EMail;
- Url = @event.Url;
- Occured = @event.Occured;
- }
- }
- }