Exemplo n.º 1
0
        public void Add(Event evnt)
        {
            // save the event to the db
            _eventRepository.CreateEvent(evnt);

            // link the event to each sub
            var eventSubs = _subscriptionRepository.CreateEventSubscription(evnt);

            // queue all events for processing
            foreach (var es in eventSubs)
            {
                _eventQueue.Add(es);
            }
        }