mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +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
31 lines
951 B
C#
31 lines
951 B
C#
#if DEBUG
|
|
using System.Data;
|
|
using BTCPayServer.Abstractions.Contracts;
|
|
|
|
namespace BTCPayServer.Services.Notifications.Blobs
|
|
{
|
|
internal class JunkNotification: BaseNotification
|
|
{
|
|
private const string TYPE = "junk";
|
|
internal class Handler : NotificationHandler<JunkNotification>
|
|
{
|
|
public override string NotificationType => TYPE;
|
|
public override (string identifier, string name)[] Meta
|
|
{
|
|
get
|
|
{
|
|
return new (string identifier, string name)[] {(TYPE, "Junk")};
|
|
}
|
|
}
|
|
|
|
protected override void FillViewModel(JunkNotification notification, NotificationViewModel vm)
|
|
{
|
|
vm.Body = $"All your junk r belong to us!";
|
|
}
|
|
}
|
|
|
|
public override string Identifier => NotificationType;
|
|
public override string NotificationType => TYPE;
|
|
}
|
|
}
|
|
#endif
|