btcpayserver/BTCPayServer.Test/TestExtension.cs
Andrew Camilleri 1440e8c55d
BTCPay Server Extensions (#1925)
* BTCPay Server Extensions

![demo](https://i.imgur.com/2S00aL2.gif)

* cleanup

* fix

* Polish UI a bit,detect when docker deployment
2020-10-15 21:28:09 +09:00

26 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>();
}
}
}