mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 01:53:52 +01:00
20 lines
731 B
C#
20 lines
731 B
C#
|
using BTCPayServer.Contracts;
|
|||
|
using BTCPayServer.Models;
|
|||
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
|||
|
namespace BTCPayServer.Plugins.Test
|
|||
|
{
|
|||
|
public class TestPlugin: BaseBTCPayServerPlugin
|
|||
|
{
|
|||
|
public override string Identifier { get; } = "BTCPayServer.Plugins.Test";
|
|||
|
public override string Name { get; } = "Test Plugin!";
|
|||
|
public override string Description { get; } = "This is a description of the loaded test extension!";
|
|||
|
|
|||
|
public override void Execute(IServiceCollection services)
|
|||
|
{
|
|||
|
services.AddSingleton<IUIExtension>(new UIExtension("TestExtensionNavExtension", "header-nav"));
|
|||
|
services.AddHostedService<ApplicationPartsLogger>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|