mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-16 23:24:25 +01:00
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using BTCPayServer.Abstractions.Contracts;
|
|
using BTCPayServer.Abstractions.Models;
|
|
using BTCPayServer.Abstractions.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace BTCPayServer.Plugins.FileSeller;
|
|
|
|
public class FileSellerPlugin : BaseBTCPayServerPlugin
|
|
{
|
|
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
|
{
|
|
new() {Identifier = nameof(BTCPayServer), Condition = ">=2.0.0"}
|
|
};
|
|
|
|
public override void Execute(IServiceCollection applicationBuilder)
|
|
{
|
|
applicationBuilder.AddHostedService<FileSellerService>();
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("FileSeller/Detect",
|
|
"header-nav"));
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("FileSeller/Detect",
|
|
"checkout-end"));
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("FileSeller/FileSellerTemplateEditorItemDetail",
|
|
"app-template-editor-item-detail"));
|
|
|
|
|
|
base.Execute(applicationBuilder);
|
|
}
|
|
} |