예제 #1
0
 public void Get([FromBody]long att, [FromBody]long med)
 {
     Guid sequence = Guid.NewGuid();
     DetectionEntity attention = new DetectionEntity()
     {
         Id = Guid.NewGuid(),
         SequenceId = sequence,
         TypeOfFrequency = 0,
         Value = att,
         InsertDateTime = DateTime.Now.Ticks,
     };
     DetectionEntity meditetion = new DetectionEntity()
     {
         Id = Guid.NewGuid(),
         SequenceId = sequence,
         TypeOfFrequency = 1,
         Value = med,
         InsertDateTime = DateTime.Now.Ticks,
     };
     List<DetectionEntity> datas = new List<DetectionEntity>();
     datas.Add(attention);
     datas.Add(meditetion);
     QueueStorageContext.EnqueueList(datas);
 }
예제 #2
0
 public void AddDetection(DetectionEntity item)
 {
     this.AddObject(DetectionTableName, item);
 }