コード例 #1
0
ファイル: Storage.cs プロジェクト: WombatWorks/windows10-sdk
 public async Task DeleteBackgroundEventAsync(string pidIn)
 {
     DBBackgroundEventsHistory backgroundEvent = new DBBackgroundEventsHistory() { BeaconPid = pidIn };
     await _db.DeleteAsync(backgroundEvent);
 }
コード例 #2
0
ファイル: Storage.cs プロジェクト: WombatWorks/windows10-sdk
 public async Task UpdateBackgroundEventAsync(string pidIn,BeaconEventType eventType)
 {
     int type = (int)eventType;
     DateTimeOffset eventTime = DateTimeOffset.Now;
     DBBackgroundEventsHistory backgroundEvent = new DBBackgroundEventsHistory() { BeaconPid = pidIn, EventTime = eventTime, EventType= type };
     await _db.UpdateAsync(backgroundEvent);
 }
コード例 #3
0
ファイル: Storage.cs プロジェクト: WombatWorks/windows10-sdk
 public async Task SaveBeaconBackgroundEvent(string pidIn,BeaconEventType triggerIn )
 {
     int eventType = (int)triggerIn;
     DateTimeOffset eventTime = DateTimeOffset.Now;
     DBBackgroundEventsHistory actions = new DBBackgroundEventsHistory() { BeaconPid = pidIn, EventType = eventType, EventTime = eventTime };
     await _db.InsertAsync(actions);
 }