mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
25 lines
949 B
C#
25 lines
949 B
C#
using BTCPayServer.Abstractions.Contracts;
|
|
using BTCPayServer.Abstractions.Models;
|
|
using BTCPayServer.Abstractions.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace BTCPayServer.Plugins.LSP
|
|
{
|
|
public class LSPPlugin : BaseBTCPayServerPlugin
|
|
{
|
|
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
|
{
|
|
new() { Identifier = nameof(BTCPayServer), Condition = ">=1.7.4" }
|
|
};
|
|
public override void Execute(IServiceCollection applicationBuilder)
|
|
{
|
|
applicationBuilder.AddSingleton<LSPService>();
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("LSP/StoreIntegrationLSPOption",
|
|
"store-integrations-list"));
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("LSP/LSPNav",
|
|
"store-integrations-nav"));
|
|
base.Execute(applicationBuilder);
|
|
}
|
|
}
|
|
}
|