parent
5d0db006ba
commit
7185cc5844
@ -1,9 +0,0 @@
|
||||
using Recyclarr.TrashLib.Config.Services;
|
||||
|
||||
namespace Recyclarr.TrashLib.Config.Parsing;
|
||||
|
||||
public interface IConfigCollection
|
||||
{
|
||||
IReadOnlyCollection<T> Get<T>(SupportedServices serviceType) where T : ServiceConfiguration;
|
||||
bool DoesConfigExist(string name);
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
using Recyclarr.TrashLib.Config.Services;
|
||||
|
||||
namespace Recyclarr.TrashLib.Config.Parsing;
|
||||
|
||||
public interface IConfigRegistry
|
||||
{
|
||||
IReadOnlyCollection<T> GetConfigsOfType<T>(SupportedServices serviceType) where T : ServiceConfiguration;
|
||||
bool DoesConfigExist(string name);
|
||||
}
|
@ -1,10 +1,18 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Recyclarr.TrashLib.Config.Services;
|
||||
|
||||
public interface IServiceConfiguration
|
||||
{
|
||||
string ServiceName { get; }
|
||||
|
||||
string? InstanceName { get; }
|
||||
|
||||
[SuppressMessage("Design", "CA1056:URI-like properties should not be strings",
|
||||
Justification = "This is not treated as a true URI until later")]
|
||||
string BaseUrl { get; }
|
||||
|
||||
string ApiKey { get; }
|
||||
|
||||
bool DeleteOldCustomFormats { get; }
|
||||
}
|
||||
|
Loading…
Reference in new issue