Beispiel #1
0
 public DataController(IUpstreamDataSyncService syncService,
                       IUpstreamDataRepository upstreamRepository,
                       IEventRepository eventRepository,
                       IRecordingServiceRepository recordingRepository,
                       ITimingSessionService timingSessionService)
 {
     this.syncService          = syncService;
     this.upstreamRepository   = upstreamRepository;
     this.eventRepository      = eventRepository;
     this.recordingRepository  = recordingRepository;
     this.timingSessionService = timingSessionService;
 }
Beispiel #2
0
 public TimingSession(Id <TimingSessionDto> id,
                      IEventRepository eventRepository,
                      IRecordingService recordingService, IRecordingServiceRepository recordingServiceRepository,
                      IAutoMapperProvider autoMapper,
                      IMessageHub messageHub, ISystemClock clock)
 {
     this.Id = id;
     this.eventRepository            = eventRepository;
     this.recordingService           = recordingService;
     this.recordingServiceRepository = recordingServiceRepository;
     this.autoMapper = autoMapper;
     this.messageHub = messageHub;
     this.clock      = clock;
     messageHub.Subscribe <UpstreamDataSyncComplete>(_ => Reload());
     messageHub.Subscribe <StorageUpdated>(x => Reload(false, x));
 }