You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/src/Recyclarr.Compatibility/ServiceCapabilityFetcher.cs

16 lines
421 B

using Recyclarr.Config.Models;
namespace Recyclarr.Compatibility;
public abstract class ServiceCapabilityFetcher<T>(IServiceInformation info)
where T : class
{
public async Task<T> GetCapabilities(IServiceConfiguration config)
{
var version = await info.GetVersion(config);
return BuildCapabilitiesObject(version);
}
protected abstract T BuildCapabilitiesObject(Version version);
}