comparison Agendas/trunk/src/Agendas.Domain/Track.cs @ 182:beeb48ddb44a

Warning con los errores que se guarden en el log del track de un evento durante una notificación (twitter, calendar, blog)
author nelopauselli
date Mon, 08 Aug 2011 21:57:10 -0300
parents 6f1041301797
children
comparison
equal deleted inserted replaced
181:6ee05ceea8c3 182:beeb48ddb44a
4 namespace AltNetHispano.Agendas.Domain 4 namespace AltNetHispano.Agendas.Domain
5 { 5 {
6 public class Track : Identificable 6 public class Track : Identificable
7 { 7 {
8 private readonly IList<TrackLog> _logs; 8 private readonly IList<TrackLog> _logs;
9 private readonly ICollection<TrackLog> _newLogs = new List<TrackLog>();
9 10
10 protected Track() 11 protected Track()
11 { 12 {
12 //ctor para NHibernate 13 //ctor para NHibernate
13 _logs = new List<TrackLog>(); 14 _logs = new List<TrackLog>();
32 33
33 public virtual void LogAdd(TrackLog trackLog) 34 public virtual void LogAdd(TrackLog trackLog)
34 { 35 {
35 trackLog.Track = this; 36 trackLog.Track = this;
36 _logs.Add(trackLog); 37 _logs.Add(trackLog);
38 _newLogs.Add(trackLog);
39
40 }
41
42 public virtual IEnumerable<TrackLog> GetLogsNews()
43 {
44 return _newLogs;
37 } 45 }
38 } 46 }
39 47
40 public enum Accion 48 public enum Accion
41 { 49 {