Upgrade Autofac dependency

This commit is contained in:
Ske 2020-06-15 00:52:20 +02:00
parent ca882dba73
commit 088bc15e5e
2 changed files with 4 additions and 4 deletions

View File

@ -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<ISentryEnricher<T>>();

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
@ -7,8 +7,8 @@
<ItemGroup>
<PackageReference Include="App.Metrics" Version="3.2.0" />
<PackageReference Include="App.Metrics.Reporting.InfluxDB" Version="3.2.0" />
<PackageReference Include="Autofac" Version="4.9.4" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="5.0.1" />
<PackageReference Include="Autofac" Version="5.2.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Dapper" Version="1.60.6" />
<PackageReference Include="Dapper.Contrib" Version="1.60.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="3.1.1" />