Files
BTCPayServerPlugins/Plugins/BTCPayServer.Plugins.FixedFloat/FixedFloatPlugin.cs
Andrew Camilleri 4220553564 update min ver
2024-12-16 14:49:11 +01:00

27 lines
1014 B
C#

using BTCPayServer.Abstractions.Contracts;
using BTCPayServer.Abstractions.Models;
using BTCPayServer.Abstractions.Services;
using Microsoft.Extensions.DependencyInjection;
namespace BTCPayServer.Plugins.FixedFloat
{
public class FixedFloatPlugin : BaseBTCPayServerPlugin
{
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
{
new() { Identifier = nameof(BTCPayServer), Condition = ">2.0.4" }
};
public override void Execute(IServiceCollection applicationBuilder)
{
applicationBuilder.AddSingleton<FixedFloatService>();
applicationBuilder.AddUIExtension("store-integrations-nav", "FixedFloat/FixedFloatNav");
applicationBuilder.AddUIExtension("checkout-payment-method", "FixedFloat/CheckoutPaymentMethodExtension");
applicationBuilder.AddUIExtension("checkout-payment", "FixedFloat/CheckoutPaymentExtension");
base.Execute(applicationBuilder);
}
}
}