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
12 lines
359 B
C#
12 lines
359 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Abstractions.Contracts
|
|
{
|
|
public interface ISettingsRepository
|
|
{
|
|
Task<T> GetSettingAsync<T>(string name = null);
|
|
Task UpdateSetting<T>(T obj, string name = null);
|
|
Task<T> WaitSettingsChanged<T>(CancellationToken cancellationToken = default);
|
|
}
|
|
}
|