comparison Agendas/trunk/src/Agendas.Blog/Impl/BlogPublicador.cs @ 65:ebce59b45b50

Agregado de version inicial del publicador para el blog
author ROWIES@ardejorxp.inworx.corp
date Tue, 17 May 2011 18:04:56 -0300
parents
children 26d0513a8410
comparison
equal deleted inserted replaced
62:c40b97bbed01 65:ebce59b45b50
1 using AltNetHispano.Agendas.Domain;
2
3 namespace Agendas.Blog.Impl
4 {
5 public class BlogPublicador : IPublicador
6 {
7 private readonly IPostWriterFactory _postWriterFactory;
8
9 public BlogPublicador(IPostWriterFactory postWriterFactory)
10 {
11 _postWriterFactory = postWriterFactory;
12 }
13
14 public void Publicar(Evento evento)
15 {
16 foreach (var track in evento.Tracks)
17 _postWriterFactory.GetPostWriter(track.Accion).WritePost(evento);
18 }
19 }
20 }