Beispiel #1
0
 public XmlService(IRepository <MemberEventPartRecord> eventRepository,
                   IRepository <ParticipantRecord> participantRepository,
                   IContentManager contentManager,
                   IMemberEventService memberEventService)
 {
     _eventRepository       = eventRepository;
     _participantRepository = participantRepository;
     _contentManager        = contentManager;
     _memberEventService    = memberEventService;
 }
 public MemberEventDriver(
     IContentManager contentManager,
     IMemberEventService eventService,
     ILocalizationService localizationService,
     IOrchardServices orchardServices
     )
 {
     _contentManager      = contentManager;
     _eventService        = eventService;
     _localizationService = localizationService;
     _orchardServices     = orchardServices;
 }
        public AdminController(

            ISiteService siteService,
            IMemberEventService eventService,
            IXmlService xmlService,
            IShapeFactory shapeFactory
            )
        {
            _siteService  = siteService;
            _eventService = eventService;
            _xmlService   = xmlService;
            Shape         = shapeFactory;
        }
        public MemberEventHandler(IRepository <MemberEventPartRecord> repository, IMemberEventService eventService)
        {
            Filters.Add(StorageFilter.For(repository));

            // Cascade delete of Participants when a MemberEvent is deleted
            OnRemoving <MemberEventPart>((context, eventPart) =>
            {
                var participants = eventService.GetEventParticipants(eventPart.Id);
                foreach (var p in participants)
                {
                    eventService.DeleteParticipant(p);
                }
            });
        }
Beispiel #5
0
 public EventController(
     IContentManager contentManager,
     IShapeFactory shapeFactory,
     IMemberEventService eventService,
     IArtistUserService artistUserService,
     IRepository <ParticipantRecord> participantRepository,
     ILocalizationService localizationService,
     IOrchardServices orchardServices
     )
 {
     _contentManager        = contentManager;
     Shape                  = shapeFactory;
     _eventService          = eventService;
     _artistUserService     = artistUserService;
     _participantRepository = participantRepository;
     _localizationService   = localizationService;
     _orchardServices       = orchardServices;
 }