PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms 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
 1using System;
 2using Bifrost.Sagas;
 3using Bifrost.Samples.Blog.Events.Posts;
 4
 5namespace Bifrost.Samples.Blog.Sagas.Posts
 6{
 7	public class Comments : Chapter
 8	{
 9		public string Author { get; set; }
10		public string Comment { get; set; }
11		public string EMail { get; set; }
12		public string Url { get; set; }
13		public DateTime Occured { get; set; }
14
15		public void Process(CommentAdded @event)
16		{
17			Author = @event.Author;
18			Comment = @event.Comment;
19			EMail = @event.EMail;
20			Url = @event.Url;
21			Occured = @event.Occured;
22		}
23	}
24}