Example #1
0
        public async Task When(ChannelCreated @event)
        {
            var history = new ChannelHistory();

            history.When(@event);
            history.Position = @event.Position;
            await _repo.Save(history);
        }
Example #2
0
 public void When(ChannelCreated created)
 {
     Name       = created.Name;
     Identifier = created.ID;
 }