Allow Obsolete of C# Indexer Implementations

This commit is contained in:
Qstick
2021-11-13 21:51:19 -06:00
parent 6200c9e496
commit 1abd14ee86
19 changed files with 40 additions and 6 deletions
+12
View File
@@ -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