mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-09 09:04:20 +01:00
* BTCPay Extensions Part 2 This PR cleans up the extension system a bit in that: * It renames the test extension to a more uniform name * Allows yo uto have system extensions, which are extensions but bundled by default with the release (and cannot be removed) * Adds a tool to help you generate an extension package from a csproj * Refactors the UI extension points to a view component * Moves some more interfaces to the Abstractions csproj * Rename to plugins
22 lines
719 B
C#
22 lines
719 B
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
using BTCPayServer.Abstractions.Converters;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace BTCPayServer.Contracts
|
|
{
|
|
public interface IBTCPayServerPlugin
|
|
{
|
|
public string Identifier { get; }
|
|
string Name { get; }
|
|
[JsonConverter(typeof(VersionConverter))]
|
|
Version Version { get; }
|
|
string Description { get; }
|
|
bool SystemPlugin { get; set; }
|
|
string[] Dependencies { get; }
|
|
void Execute(IApplicationBuilder applicationBuilder, IServiceProvider applicationBuilderApplicationServices);
|
|
void Execute(IServiceCollection applicationBuilder);
|
|
}
|
|
}
|