public SonarrSync(ISettingsService <SonarrSettings> s, ISonarrApi api, ILogger <SonarrSync> l, IExternalContext ctx) { _settings = s; _api = api; _log = l; _ctx = ctx; }
public SickRageSync(ISettingsService <SickRageSettings> s, ISickRageApi api, ILogger <SickRageSync> l, IExternalContext ctx) { _settings = s; _api = api; _log = l; _ctx = ctx; }
public RadarrSync(ISettingsService <RadarrSettings> radarr, IRadarrApi radarrApi, ILogger <RadarrSync> log, IExternalContext ctx) { RadarrSettings = radarr; RadarrApi = radarrApi; Logger = log; _ctx = ctx; }
public CouchPotatoSync(ISettingsService <CouchPotatoSettings> cpSettings, ICouchPotatoApi api, ILogger <CouchPotatoSync> log, IExternalContext ctx) { _settings = cpSettings; _api = api; _log = log; _ctx = ctx; _settings.ClearCache(); }
public LidarrAlbumSync(ISettingsService <LidarrSettings> lidarr, ILidarrApi lidarrApi, ILogger <LidarrAlbumSync> log, IExternalContext ctx, IBackgroundJobClient job, ILidarrAvailabilityChecker availability) { _lidarrSettings = lidarr; _lidarrApi = lidarrApi; _logger = log; _ctx = ctx; _job = job; _availability = availability; }
public LidarrArtistSync(ISettingsService <LidarrSettings> lidarr, ILidarrApi lidarrApi, ILogger <LidarrArtistSync> log, IExternalContext ctx, IBackgroundJobClient background, ILidarrAlbumSync album) { _lidarrSettings = lidarr; _lidarrApi = lidarrApi; _logger = log; _ctx = ctx; _job = background; _albumSync = album; }
public virtual void Execute(IExternalContext context) { var contextWrapper = GetContextWrapper(context); if (IsValidContext(contextWrapper)) { SetupLogging(contextWrapper); Execute(contextWrapper); } }
/// <summary> /// Creates a new SCL Runner /// </summary> public SCLRunner( SCLSettings settings, ILogger logger, StepFactoryStore stepFactoryStore, IExternalContext externalContext) { _settings = settings; _logger = logger; _stepFactoryStore = stepFactoryStore; _externalContext = externalContext; }
public ContextWrapper(IExternalContext context) { if (context == null) { throw new InvalidContextException(InvalidContextException.ContextNullMessage); } if (context.Properties == null || context.Properties.Count == 0) { throw new InvalidContextException(InvalidContextException.ContextNoPropertiesMessage); } Context = context; }
public SonarrCacheRule(IExternalContext ctx) { _ctx = ctx; }
protected virtual ContextWrapper GetContextWrapper(IExternalContext context) { return(new ContextWrapper(context)); }
public ExternalRepository(IExternalContext ctx) : base(ctx) { }
public PlexServerContentRepository(IExternalContext db) : base(db) { Db = db; }
public EmbyContentRepository(IExternalContext db) : base(db) { Db = db; }