コード例 #1
0
        public Wrapper([NotNull] IScheduler scheduler,
                       [NotNull] IDeviceFactory deviceFactory,
                       [NotNull] Func <DateTimeOffset, IDateTimeOffset> dateTimeFactory,
                       [NotNull] ISubject <IDevice> received,
                       [NotNull] ISubject <DateTime> stopped,
                       [NotNull] IStatusMapper statusMapper)
        {
            Guard.ArgumentNotNull(scheduler,
                                  nameof(scheduler));
            Guard.ArgumentNotNull(deviceFactory,
                                  nameof(deviceFactory));
            Guard.ArgumentNotNull(dateTimeFactory,
                                  nameof(dateTimeFactory));
            Guard.ArgumentNotNull(received,
                                  nameof(received));
            Guard.ArgumentNotNull(stopped,
                                  nameof(stopped));
            Guard.ArgumentNotNull(statusMapper,
                                  nameof(statusMapper));

            _deviceFactory   = deviceFactory;
            _dateTimeFactory = dateTimeFactory;
            _received        = received;
            _stopped         = stopped;
            _statusMapper    = statusMapper;

            _watcher = new AdvertisementWatcher
            {
                ScanningMode = BluetoothLEScanningMode.Active
            };
        }
コード例 #2
0
 public StatusesController(
     ISession session,
     IStatusMapper statusMapper,
     IHttpStatusFetcher statusFetcher)
 {
     _session       = session;
     _statusMapper  = statusMapper;
     _statusFetcher = statusFetcher;
 }
コード例 #3
0
 public StatusesController(
     ISession session,
     IStatusMapper statusMapper,
     IHttpStatusFetcher statusFetcher)
 {
     _session = session;
     _statusMapper = statusMapper;
     _statusFetcher = statusFetcher;
 }
コード例 #4
0
 public TaskMapper(
     IUserMapper userMapper,
     IPriorityMapper priorityMapper,
     IStatusMapper statusMapper,
     ICategoryMapper categoryMapper)
 {
     _userMapper     = userMapper;
     _priorityMapper = priorityMapper;
     _statusMapper   = statusMapper;
     _categoryMapper = categoryMapper;
 }
コード例 #5
0
 public TaskStatusController(
     IHttpTaskFetcher taskFetcher,
     ISession session,
     IStatusMapper statusMapper,
     IHttpStatusFetcher statusFetcher)
 {
     _taskFetcher = taskFetcher;
     _session = session;
     _statusMapper = statusMapper;
     _statusFetcher = statusFetcher;
 }
コード例 #6
0
ファイル: TaskMapper.cs プロジェクト: isalo/Mvc4ServicesBook
 public TaskMapper(
     IUserMapper userMapper, 
     IPriorityMapper priorityMapper,
     IStatusMapper statusMapper, 
     ICategoryMapper categoryMapper)
 {
     _userMapper = userMapper;
     _priorityMapper = priorityMapper;
     _statusMapper = statusMapper;
     _categoryMapper = categoryMapper;
 }
コード例 #7
0
 public TaskStatusController(
     IHttpTaskFetcher taskFetcher,
     ISession session,
     IStatusMapper statusMapper,
     IHttpStatusFetcher statusFetcher)
 {
     _taskFetcher   = taskFetcher;
     _session       = session;
     _statusMapper  = statusMapper;
     _statusFetcher = statusFetcher;
 }