示例#1
0
 public RichPreviewController(
     IEventService eventService,
     IEventConferenceDayService eventConferenceDayService)
 {
     _eventService = eventService;
     _eventConferenceDayService = eventConferenceDayService;
 }
示例#2
0
 public SyncController(
     ILoggerFactory loggerFactory,
     IEventService eventService,
     IEventConferenceDayService eventConferenceDayService,
     IEventConferenceRoomService eventConferenceRoomService,
     IEventConferenceTrackService eventConferenceTrackService,
     IKnowledgeGroupService knowledgeGroupService,
     IKnowledgeEntryService knowledgeEntryService,
     IImageService imageService,
     IDealerService dealerService,
     IAnnouncementService announcementService,
     IMapService mapService
     )
 {
     _logger = loggerFactory.CreateLogger(GetType());
     _eventConferenceTrackService = eventConferenceTrackService;
     _eventConferenceRoomService  = eventConferenceRoomService;
     _eventConferenceDayService   = eventConferenceDayService;
     _eventService          = eventService;
     _knowledgeGroupService = knowledgeGroupService;
     _knowledgeEntryService = knowledgeEntryService;
     _imageService          = imageService;
     _dealerService         = dealerService;
     _announcementService   = announcementService;
     _mapService            = mapService;
 }
 public CsvFileImporter(
     IEventService eventService,
     IEventConferenceDayService eventConferenceDayService,
     IEventConferenceRoomService eventConferenceRoomService,
     IEventConferenceTrackService eventConferenceTrackService
     )
 {
     _eventService = eventService;
     _eventConferenceDayService   = eventConferenceDayService;
     _eventConferenceRoomService  = eventConferenceRoomService;
     _eventConferenceTrackService = eventConferenceTrackService;
 }
示例#4
0
        public CsvFileImporter(
            IEventService eventService,
            IEventConferenceDayService eventConferenceDayService,
            IEventConferenceRoomService eventConferenceRoomService,
            IEventConferenceTrackService eventConferenceTrackService
            )
        {
            _eventService = eventService;
            _eventConferenceDayService   = eventConferenceDayService;
            _eventConferenceRoomService  = eventConferenceRoomService;
            _eventConferenceTrackService = eventConferenceTrackService;

            DateTimeOffset = TimeSpan.Zero;
        }
示例#5
0
 public EventsCommand(
     IEventService eventService,
     IEventConferenceDayService eventConferenceDayService,
     IEventConferenceRoomService eventConferenceRoomService,
     IEventConferenceTrackService eventConferenceTrackService,
     IImageService imageService
     )
 {
     _eventService = eventService;
     _eventConferenceDayService   = eventConferenceDayService;
     _eventConferenceRoomService  = eventConferenceRoomService;
     _eventConferenceTrackService = eventConferenceTrackService;
     _imageService = imageService;
 }
示例#6
0
 public SyncController(
     IEventService eventService,
     IEventConferenceDayService eventConferenceDayService,
     IEventConferenceRoomService eventConferenceRoomService,
     IEventConferenceTrackService eventConferenceTrackService,
     IKnowledgeGroupService knowledgeGroupService,
     IKnowledgeEntryService knowledgeEntryService
     )
 {
     _eventConferenceTrackService = eventConferenceTrackService;
     _eventConferenceRoomService  = eventConferenceRoomService;
     _eventConferenceDayService   = eventConferenceDayService;
     _eventService          = eventService;
     _knowledgeGroupService = knowledgeGroupService;
     _knowledgeEntryService = knowledgeEntryService;
 }
示例#7
0
        public static List <EventConferenceDayRecord> UpdateEventConferenceDays(
            IList <Tuple <DateTime, string> > importConferenceDays,
            IEventConferenceDayService service
            )
        {
            var eventConferenceDayRecords = service.FindAllAsync().Result;

            var patch = new PatchDefinition <Tuple <DateTime, string>, EventConferenceDayRecord>(
                (source, list) => list.SingleOrDefault(a => a.Date == source.Item1)
                );

            patch.Map(s => s.Item1, t => t.Date)
            .Map(s => s.Item2, t => t.Name);

            var diff = patch.Patch(importConferenceDays, eventConferenceDayRecords);

            service.ApplyPatchOperationAsync(diff).Wait();

            return(diff.Where(a => a.Entity.IsDeleted == 0).Select(a => a.Entity).ToList());
        }
 public EventConferenceDaysController(IEventConferenceDayService eventConferenceDayService)
 {
     _eventConferenceDayService = eventConferenceDayService;
 }