Implement ShouldUseSameServiceProvider properly.

Hopefully this fixes EFCore memory leaks.
This commit is contained in:
Pieter-Jan Briers
2021-11-13 17:46:19 +01:00
parent 828025d020
commit 6db52e795e

View File

@@ -37,7 +37,7 @@ namespace Content.Server.Database
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other) public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other)
{ {
return false; return other is ExtensionInfo;
} }
public override void PopulateDebugInfo(IDictionary<string, string> debugInfo) public override void PopulateDebugInfo(IDictionary<string, string> debugInfo)