mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* Displaying LND Rest connection info in Services * Code cleanup * Tweaking UI * Fix typo
22 lines
597 B
C#
22 lines
597 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Lightning;
|
|
|
|
namespace BTCPayServer.Configuration.External
|
|
{
|
|
public class ExternalServices : MultiValueDictionary<string, ExternalService>
|
|
{
|
|
public IEnumerable<T> GetServices<T>(string cryptoCode) where T : ExternalService
|
|
{
|
|
if (!this.TryGetValue(cryptoCode.ToUpperInvariant(), out var services))
|
|
return Array.Empty<T>();
|
|
return services.OfType<T>();
|
|
}
|
|
}
|
|
|
|
public class ExternalService
|
|
{
|
|
}
|
|
}
|