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));
        }
Esempio n. 2
0
        private void HandlePost(Post x)
        {
            var savePost = new SavePost(Sender.Path, x);

            _child.Tell(savePost);
        }