mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
* BTCPay Server Extensions  * cleanup * fix * Polish UI a bit,detect when docker deployment
25 lines
925 B
C#
25 lines
925 B
C#
using System;
|
|
using BTCPayServer.Contracts;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace BTCPayServer.Test
|
|
{
|
|
public class TestExtension: IBTCPayServerExtension
|
|
{
|
|
public string Identifier { get; } = "BTCPayServer.Test";
|
|
public string Name { get; } = "Test Plugin!";
|
|
public Version Version { get; } = new Version(1,0,0,0);
|
|
public string Description { get; } = "This is a description of the loaded test extension!";
|
|
public void Execute(IApplicationBuilder applicationBuilder, IServiceProvider applicationBuilderApplicationServices)
|
|
{
|
|
|
|
}
|
|
|
|
public void Execute(IServiceCollection services)
|
|
{
|
|
services.AddSingleton<INavExtension>(new NavExtension("TestExtensionNavExtension", "header-nav"));
|
|
services.AddHostedService<ApplicationPartsLogger>();
|
|
}
|
|
}
|
|
}
|