private void HandlePost(SavePost x) { MaybeThrowException(); using (var writer = File.AppendText(Path)) { writer.WriteLine(x.Post.Content); } Context.Parent.Tell(new PostSaved(x.From, x.Post.Id)); }
private void HandlePost(Post x) { var savePost = new SavePost(Sender.Path, x); _child.Tell(savePost); }