mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-25 22:59:10 -04:00
Allow Obsolete of C# Indexer Implementations
This commit is contained in:
@@ -45,6 +45,18 @@ namespace NzbDrone.Core.Indexers
|
||||
|
||||
public Type ConfigContract => typeof(TSettings);
|
||||
|
||||
public bool IsObsolete()
|
||||
{
|
||||
var attributes = GetType().GetCustomAttributes(false);
|
||||
|
||||
foreach (ObsoleteAttribute attribute in attributes.OfType<ObsoleteAttribute>())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual ProviderMessage Message => null;
|
||||
|
||||
public virtual IEnumerable<ProviderDefinition> DefaultDefinitions
|
||||
|
||||
Reference in New Issue
Block a user