public FakeStatusCyclocityRepository( ICyclocityRepository innerRepository, IFakeGenerator fakeStatusGenerator, ITaskulerScheduleHandle updateFakeDataScheduleHandle) { _InnerRepository = innerRepository; _FakeStatusGenerator = fakeStatusGenerator; _StationsListLock = new AsyncReaderWriterLock(); updateFakeDataScheduleHandle.AddTask(async () => await _UpdateFakeDataAsync()); }
public FakeStatusCyclocityRepository( ICyclocityRepository innerRepository, IFakeGenerator fakeStatusGenerator, ITaskulerScheduleHandle updateFakeDataScheduleHandle) { _InnerRepository = innerRepository; _FakeStatusGenerator = fakeStatusGenerator; _StationsListLock = new AsyncReaderWriterLock(); updateFakeDataScheduleHandle.AddTask(async() => await _UpdateFakeDataAsync()); }