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

            strategy.Publish <TEventType>(ev);
        }