Beispiel #1
0
 protected void OnTweetPosted(TweetPostedEvent e)
 {
     _message = e.Message;
     _who = e.Who;
     _timestamp = e.TimeStamp;
     _channel = e.Channel;
 }
Beispiel #2
0
 public Tweet(string message, string who)
 {
     var @event = new TweetPostedEvent()
     {
         Message = message,
         Who = who,
         Timestamp = DateTime.UtcNow
     };
     ApplyEvent(@event);
 }
Beispiel #3
0
        public Tweet(string message, Guid channel, string who)
        {
            var e = new TweetPostedEvent
            {
                Message = message,
                Who = who,
                TimeStamp = DateTime.UtcNow,
                Channel = channel
            };

            ApplyEvent(e);
        }
Beispiel #4
0
 protected void OnTweetPosted(TweetPostedEvent e)
 {
     message = e.Message;
     who = e.Who;
     timestamp = e.Timestamp;
 }