From 088bc15e5e2bd2cb1210808ee569b1ec549220ab Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 15 Jun 2020 00:52:20 +0200 Subject: [PATCH] Upgrade Autofac dependency --- PluralKit.Bot/Bot.cs | 2 +- PluralKit.Core/PluralKit.Core.csproj | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PluralKit.Bot/Bot.cs b/PluralKit.Bot/Bot.cs index 77b78c00..5957b1d4 100644 --- a/PluralKit.Bot/Bot.cs +++ b/PluralKit.Bot/Bot.cs @@ -101,7 +101,7 @@ namespace PluralKit.Bot async Task HandleEventInner() { - var serviceScope = _services.BeginLifetimeScope(); + await using var serviceScope = _services.BeginLifetimeScope(); // Also, find a Sentry enricher for the event type (if one is present), and ask it to put some event data in the Sentry scope var sentryEnricher = serviceScope.ResolveOptional>(); diff --git a/PluralKit.Core/PluralKit.Core.csproj b/PluralKit.Core/PluralKit.Core.csproj index e4dc7642..49040aa0 100644 --- a/PluralKit.Core/PluralKit.Core.csproj +++ b/PluralKit.Core/PluralKit.Core.csproj @@ -1,4 +1,4 @@ - + netcoreapp3.1 @@ -7,8 +7,8 @@ - - + +