From 060fc46e4f1650a565b576fee16b48fbf5051a2f Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 8 Jul 2021 12:53:34 +0200 Subject: [PATCH] Fix system plugins resource loading --- .../Services/TestPluginService.cs | 1 + .../Views/TestExtension/Index.cshtml | 2 +- BTCPayServer/Plugins/PluginManager.cs | 33 +++++++++++-------- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/BTCPayServer.Plugins.Test/Services/TestPluginService.cs b/BTCPayServer.Plugins.Test/Services/TestPluginService.cs index f162ab826..aaabb31de 100644 --- a/BTCPayServer.Plugins.Test/Services/TestPluginService.cs +++ b/BTCPayServer.Plugins.Test/Services/TestPluginService.cs @@ -20,6 +20,7 @@ namespace BTCPayServer.Plugins.Test.Services await using var context = _testPluginDbContextFactory.CreateContext(); await context.TestPluginRecords.AddAsync(new TestPluginData() {Timestamp = DateTimeOffset.UtcNow}); + await context.SaveChangesAsync(); } diff --git a/BTCPayServer.Plugins.Test/Views/TestExtension/Index.cshtml b/BTCPayServer.Plugins.Test/Views/TestExtension/Index.cshtml index 3c761d54a..f1dd239f8 100644 --- a/BTCPayServer.Plugins.Test/Views/TestExtension/Index.cshtml +++ b/BTCPayServer.Plugins.Test/Views/TestExtension/Index.cshtml @@ -10,7 +10,7 @@

Persisted Data

The following is data persisted to the configured database but in an isolated DbContext. Every time you start BTCPayw with this plugin enabled, a timestamp is logged.

-