示例#1
0
 public CachedMeasurementRepository(
     SensateContext context,
     IGeoQueryService geo,
     ILogger <MeasurementRepository> logger,
     ICacheStrategy <string> cache) : base(context, geo, logger)
 {
     this._cache = cache;
 }
 public SystemStatisticsRepository(SensateContext ctx) : base(ctx.SystemStatistics)
 {
 }
 public SensorRepository(SensateContext context) : base(context.Sensors)
 {
     this._sensors = context.Sensors;
     this._rng     = new Random(DateTime.Now.Millisecond);
 }
 public ControlMessageRepository(SensateContext ctx) : base(ctx.ControlMessages)
 {
 }
 public MeasurementRepository(SensateContext context, IGeoQueryService geo,
                              ILogger <MeasurementRepository> logger) : base(context.Measurements)
 {
     this._logger      = logger;
     this.m_geoService = geo;
 }
 public SensorStatisticsRepository(SensateContext context) : base(context.Statistics)
 {
     this._stats = context.Statistics;
 }
示例#7
0
 public MessageRepository(SensateContext ctx, IGeoQueryService geo) : base(ctx.Messages)
 {
     this._geoService = geo;
 }
		public CachedSensorRepository(SensateContext context, ICacheStrategy<string> cache) :
			base(context)
		{
			this._cache = cache;
		}