public void AddChannelCreatedEvent(Models.Group @group, Models.User authorUser, Models.Channel channel)
        {
            var @event = new Event(EventType.ChannelCreated, authorUser, group);

            @event.AttachChannel(channel);

            _eventStore.AddToBus(@event);
        }
Example #2
0
        public void AddGroupCreatedEvent(Models.Group group, Models.User authorUser)
        {
            var @event = new Event(EventType.GroupCreated, authorUser, group);

            _eventStore.AddToBus(@event);
        }