Plugin FailSafe (#2351)

This introduces the concept of plugins being disabled in the case of an unrecoverable runtime error caused by a plugin.
This commit is contained in:
Andrew Camilleri
2021-04-01 05:27:22 +02:00
committed by GitHub
parent 64db865e1e
commit 6ead5c3800
5 changed files with 139 additions and 6 deletions

View File

@@ -39,6 +39,7 @@ namespace BTCPayServer.Controllers
Installed = pluginService.LoadedPlugins,
Available = availablePlugins,
Commands = pluginService.GetPendingCommands(),
Disabled = pluginService.GetDisabledPlugins(),
CanShowRestart = btcPayServerOptions.DockerDeployment
};
return View(res);
@@ -50,6 +51,7 @@ namespace BTCPayServer.Controllers
public IEnumerable<PluginService.AvailablePlugin> Available { get; set; }
public (string command, string plugin)[] Commands { get; set; }
public bool CanShowRestart { get; set; }
public string[] Disabled { get; set; }
}
[HttpPost("server/plugins/uninstall")]