コード例 #1
0
        public FakeStatusCyclocityRepository(
            ICyclocityRepository innerRepository,
            IFakeGenerator fakeStatusGenerator,
            ITaskulerScheduleHandle updateFakeDataScheduleHandle)
        {
            _InnerRepository = innerRepository;
            _FakeStatusGenerator = fakeStatusGenerator;
            _StationsListLock = new AsyncReaderWriterLock();

            updateFakeDataScheduleHandle.AddTask(async () => await _UpdateFakeDataAsync());
        }
コード例 #2
0
        public FakeStatusCyclocityRepository(
            ICyclocityRepository innerRepository,
            IFakeGenerator fakeStatusGenerator,
            ITaskulerScheduleHandle updateFakeDataScheduleHandle)
        {
            _InnerRepository     = innerRepository;
            _FakeStatusGenerator = fakeStatusGenerator;
            _StationsListLock    = new AsyncReaderWriterLock();

            updateFakeDataScheduleHandle.AddTask(async() => await _UpdateFakeDataAsync());
        }