mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 09:58:13 +01:00
This allows plugins to create custom dbcontexts, which would be namespaced in the scheme with a prefix. Migrations are supported too and the table would be prefixed too
16 lines
401 B
C#
16 lines
401 B
C#
using System.Threading.Tasks;
|
|
using BTCPayServer.Abstractions.Contracts;
|
|
|
|
namespace BTCPayServer.Abstractions.Services
|
|
{
|
|
public abstract class PluginAction<T>:IPluginHookAction
|
|
{
|
|
public string Hook { get; }
|
|
public Task Execute(object args)
|
|
{
|
|
return Execute(args is T args1 ? args1 : default);
|
|
}
|
|
|
|
public abstract Task Execute(T arg);
|
|
}
|
|
}
|