Example #1
0
 private async Task StartupEventAsync(StartupEvent evt)
 {
     using (EventsDatabaseContext context = new EventsDatabaseContext()) {
         context.StartupEvents.Add(evt);
         await context.SaveChangesAsync().ConfigureAwait(false);
     }
 }
Example #2
0
 private async Task AuthenticateEventAsync(AuthenticateEvent evt)
 {
     using (EventsDatabaseContext context = new EventsDatabaseContext()) {
         context.AuthenticationEvents.Add(evt);
         await context.SaveChangesAsync().ConfigureAwait(false);
     }
 }