コード例 #1
0
 public Task AddEventAsync(DeviceEvent deviceEvent)
 {
     using (var context = new ApplicationDatabaseContext())
     {
         context.DeviceEvents.Add(deviceEvent);
         return context.SaveChangesAsync();
     }
 }
コード例 #2
0
 public Task AddEventAsync(DeviceEvent deviceEvent)
 {
     return this.deviceEventCommandStore.AddEventAsync(deviceEvent);
 }