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.
Ombi/src/Ombi.Core/Rule/Rules/Request/SonarrCacheRequestRule.cs

23 lines
579 B

using System.Threading.Tasks;
using Ombi.Core.Rule.Interfaces;
using Ombi.Store.Context;
using Ombi.Store.Entities.Requests;
namespace Ombi.Core.Rule.Rules.Request
{
public class SonarrCacheRequestRule : BaseRequestRule, IRules<BaseRequest>
{
public SonarrCacheRequestRule(ExternalContext ctx)
{
_ctx = ctx;
}
private readonly ExternalContext _ctx;
public Task<RuleResult> Execute(BaseRequest obj)
{
var rule = new SonarrCacheRule(_ctx);
return rule.Execute(obj);
}
}
}