private void HandlePost(Post x)
        {
            var savePost = new SavePost(Sender.Path, x);

            _child.Tell(savePost);

            expectedId += 1;
        }
Exemplo n.º 2
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));
        }