public PostService(IPostRepository repository, ILocalizationRepository localizationRepository, Site site, IValidationService validator, IOxiteEvents events)
 {
     this.repository             = repository;
     this.localizationRepository = localizationRepository;
     this.site      = site;
     this.validator = validator;
     this.events    = events;
 }
Exemple #2
0
        public void EventAdd(string eventName, Action <object> method)
        {
            if (events == null)
            {
                events = Container.Resolve <IOxiteEvents>();
            }

            events.Add(eventName, method);

            Container.RegisterInstance <IOxiteEvents>(events);
        }