public VoronoiFactory( IEventHandlerStrategy <SiteEvent> siteEventHandler, IEventHandlerStrategy <CircleEvent> circleEventHandler, ISiteGenerator siteGenerator, IBoundingBoxService boundingBoxService) { _siteGenerator = siteGenerator; _siteEventHandler = siteEventHandler; _circleEventHandler = circleEventHandler; _boundingBoxService = boundingBoxService; _logger = Logger.Instance; }
public void Publish <TEventType>(TEventType ev) where TEventType : IEvent { IEventHandlerStrategy strategy = this.GetStrategyHandler <TEventType>(ev); strategy.Publish <TEventType>(ev); }