public PublicModule(IOptions <TrackedMediaSettings> trackedMediaSettings, IVRPersistenceClient vrPersistenceClient, ILogger <PublicModule> logger) { _trackedMediaSettings = trackedMediaSettings.Value; _vrPersistenceClient = vrPersistenceClient; _logger = logger; }
public NotificationEndpointController(ILogger <NotificationEndpointController> logger, IOptions <TrackedMediaSettings> trackedMediaSettings, ISubscriptionService subscriptionService) { _logger = logger; _subscriptionService = subscriptionService; _trackedMediaSettings = trackedMediaSettings.Value; }
public ReleaseValidator(TrackedMediaSettings trackedMediaSettings) { RuleFor(r => r.MediaName).NotEmpty(); RuleFor(r => r.MediaName) .Must(m => trackedMediaSettings.MediaNames.Contains(m.ToLower())) .WithMessage("Media of release to add is not included in the MediaSettings"); RuleFor(r => r.Url).NotEmpty(); RuleFor(r => r.ReleaseNumber).Must(n => n > -1); }
public PublicModule(IOptions <TrackedMediaSettings> trackedMediaSettings, ILogger <PublicModule> logger, ISubscriptionService subscriptionService, INotificationEndpointService notificationEndpointService) { _trackedMediaSettings = trackedMediaSettings.Value; _logger = logger; _subscriptionService = subscriptionService; _notificationEndpointService = notificationEndpointService; }
public VROrchestratorService( IOptions <OrchestratorServiceSettings> orchestratorServiceSettings, IOptions <TrackedMediaSettings> trackedMediaSettings, ILogger <VROrchestratorService> logger, IServiceProvider serviceProvider, INotificationService notificationService ) { _trackedMediaSettings = trackedMediaSettings.Value; _orchestratorServiceSettings = orchestratorServiceSettings.Value; _logger = logger; _serviceProvider = serviceProvider; _notificationService = notificationService; if (!_trackedMediaSettings?.MediaNames?.Any() ?? true) { _logger.LogError($"{nameof(TrackedMediaSettings)}.{nameof(TrackedMediaSettings.MediaNames)} must be configured."); throw new ArgumentException($"{nameof(TrackedMediaSettings)}.{nameof(TrackedMediaSettings.MediaNames)} must be configured."); } }
public ScrapeInstructionValidator(TrackedMediaSettings trackedMediaSettings) { RuleFor(sI => sI.MediaName) .Must(sI => trackedMediaSettings.MediaNames.Contains(sI.ToLower())) .WithMessage("Media of release to add is not included in the MediaSettings"); }
public SubscriptionValidator(TrackedMediaSettings trackedMediaSettings) { RuleFor(sub => trackedMediaSettings.MediaNames.Contains(sub.MediaName.ToLower())); }
public ScrapeController(ILogger <ScrapeController> logger, IOptions <TrackedMediaSettings> trackedMediaSettings, IScrapeService scrapeService) { _logger = logger; _scrapeService = scrapeService; _trackedMediaSettings = trackedMediaSettings.Value; }
public ReleaseController(ILogger <ReleaseController> logger, IReleaseService releaseService, IOptions <TrackedMediaSettings> trackedMediaSettings) { _logger = logger; _releaseService = releaseService; _trackedMediaSettings = trackedMediaSettings.Value; }