コード例 #1
0
        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));
        }
コード例 #2
0
        private void HandlePost(Post x)
        {
            var savePost = new SavePost(Sender.Path, x);

            _child.Tell(savePost);
        }