mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
This cleans up the client factory for plugins so that it is less hectic looking. Additionally, it fixes a bug where if you reuse the factory after setting a store, the state might stick.
12 lines
408 B
C#
12 lines
408 B
C#
#nullable enable
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Abstractions.Contracts;
|
|
|
|
public interface IStoreRepository
|
|
{
|
|
Task<T?> GetSettingAsync<T>(string storeId, string name) where T : class;
|
|
Task<Dictionary<string, T?>> GetSettingsAsync<T>(string name) where T : class;
|
|
Task UpdateSetting<T>(string storeId, string name, T obj) where T : class;
|
|
}
|