Exemplo n.º 1
0
 public DeleteNotificationPipelineCommandHandler(
     INotificationEngine engine,
     ILogger <DeleteNotificationPipelineCommandHandler> logger)
 {
     this._engine = engine ?? throw new ArgumentNullException(nameof(engine));
     this._logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 2
0
 public OffenderManager(IOffenderRepository offenderRepo,
                        ILogger logger,
                        INotificationEngine notifEngine)
 {
     offenderRepository = offenderRepo;
     systemLogger       = logger;
     notificationEngine = notifEngine;
 }
Exemplo n.º 3
0
 public NotificationsController(
     INotificationEngine notificationEngine,
     IMediator mediator,
     ILogger <NotificationsController> logger)
 {
     this._notificationEngine = notificationEngine;
     this._mediator           = mediator;
     this._logger             = logger;
 }
Exemplo n.º 4
0
        public RequestsModule(
            IRequestService service,
            ISettingsService <PlexRequestSettings> prSettings,
            ISettingsService <PlexSettings> plex,
            INotificationService notify,
            ISettingsService <SonarrSettings> sonarrSettings,
            ISettingsService <SickRageSettings> sickRageSettings,
            ISettingsService <CouchPotatoSettings> cpSettings,
            ICouchPotatoApi cpApi,
            ISonarrApi sonarrApi,
            ISickRageApi sickRageApi,
            ICacheProvider cache,
            IAnalytics an,
            INotificationEngine engine,
            ISecurityExtensions security,
            ISettingsService <CustomizationSettings> customSettings) : base("requests", prSettings, security)
        {
            Service             = service;
            PrSettings          = prSettings;
            PlexSettings        = plex;
            NotificationService = notify;
            SonarrSettings      = sonarrSettings;
            SickRageSettings    = sickRageSettings;
            CpSettings          = cpSettings;
            SonarrApi           = sonarrApi;
            SickRageApi         = sickRageApi;
            CpApi                 = cpApi;
            Cache                 = cache;
            Analytics             = an;
            NotificationEngine    = engine;
            CustomizationSettings = customSettings;

            Get["/", true] = async(x, ct) => await LoadRequests();

            Get["/movies", true] = async(x, ct) => await GetMovies();

            Get["/tvshows", true] = async(c, ct) => await GetTvShows();

            Get["/albums", true] = async(x, ct) => await GetAlbumRequests();

            Post["/delete", true] = async(x, ct) => await DeleteRequest((int)Request.Form.id);

            Post["/reportissue", true] = async(x, ct) => await ReportIssue((int)Request.Form.requestId, (IssueState)(int)Request.Form.issue, null);

            Post["/reportissuecomment", true] = async(x, ct) => await ReportIssue((int)Request.Form.requestId, IssueState.Other, (string)Request.Form.commentArea);

            Post["/clearissues", true] = async(x, ct) => await ClearIssue((int)Request.Form.Id);

            Post["/changeavailability", true] = async(x, ct) => await ChangeRequestAvailability((int)Request.Form.Id, (bool)Request.Form.Available);

            Post["/changeRootFolder", true] = async(x, ct) => await ChangeRootFolder((int)Request.Form.requestId, (int)Request.Form.rootFolderId);

            Get["/UpdateFilters", true] = async(x, ct) => await GetFilterAndSortSettings();
        }
Exemplo n.º 5
0
 public DashboardController(
     DHCPv6RootScope rootScope,
     DHCPv4RootScope dhcpv4RootScope,
     IDHCPv6ReadStore storage,
     INotificationEngine notificationEngine)
 {
     _rootScope          = rootScope ?? throw new ArgumentNullException(nameof(rootScope));
     _dhcpv4RootScope    = dhcpv4RootScope ?? throw new ArgumentNullException(nameof(dhcpv4RootScope));
     _storage            = storage ?? throw new ArgumentNullException(nameof(storage));
     _notificationEngine = notificationEngine ?? throw new ArgumentNullException(nameof(notificationEngine));
 }
Exemplo n.º 6
0
 public CreateNotificationPipelineCommandHandler(
     INotificationEngine engine,
     INotificationConditionFactory conditionFactory,
     INotificationActorFactory actorFactory,
     ILoggerFactory loggerFactory,
     ILogger <CreateNotificationPipelineCommandHandler> logger)
 {
     this._engine           = engine ?? throw new ArgumentNullException(nameof(engine));
     this._conditionFactory = conditionFactory;
     this._actorFactory     = actorFactory;
     this._loggerFactory    = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
     this._logger           = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 7
0
 public PlexAvailabilityChecker(ISettingsService <PlexSettings> plexSettings, IRequestService request, IPlexApi plex, ICacheProvider cache,
                                INotificationService notify, IJobRecord rec, IRepository <UsersToNotify> users, IRepository <PlexEpisodes> repo, INotificationEngine e)
 {
     Plex               = plexSettings;
     RequestService     = request;
     PlexApi            = plex;
     Cache              = cache;
     Notification       = notify;
     Job                = rec;
     UserNotifyRepo     = users;
     EpisodeRepo        = repo;
     NotificationEngine = e;
 }
Exemplo n.º 8
0
 public NotificationLogic()
 {
     notificationEngine = new NotificationEngine();
 }
Exemplo n.º 9
0
 public NewTriggerHappendMessageHandler(INotificationEngine engine,
                                        ILogger <NewTriggerHappendMessageHandler> logger)
 {
     this._engine = engine;
     this._logger = logger;
 }
Exemplo n.º 10
0
 public Arbitrarge1TradeStrategy(IExchange[] _exchanges, INotificationEngine _notificationEngine)
 {
     exchanges = _exchanges;
     notificationEngine = _notificationEngine;
 }
Exemplo n.º 11
0
 public AbsenceManager(INotificationEngine notification, IStorageResourceAccess storage, ILogger logger)
 {
     _notification = notification ?? throw new ArgumentNullException(nameof(notification));
     _storage      = storage ?? throw new ArgumentNullException(nameof(storage));
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 12
0
 public Arbitrarge1TradeStrategy(IExchange[] _exchanges, INotificationEngine _notificationEngine)
 {
     exchanges          = _exchanges;
     notificationEngine = _notificationEngine;
 }
Exemplo n.º 13
0
 public Arbitrarge2TradeStrategy(INotificationEngine _notificationEngine, ICurrencyPairRepository _currencyPairRepository, IDataStore _dataStore)
 {
     currencyPairRepository = _currencyPairRepository;
     notificationEngine     = _notificationEngine;
     dataStore = _dataStore;
 }
Exemplo n.º 14
0
 public Arbitrarge2TradeStrategy( INotificationEngine _notificationEngine, ICurrencyPairRepository _currencyPairRepository, IDataStore _dataStore)
 {
     currencyPairRepository = _currencyPairRepository;
     notificationEngine = _notificationEngine;
     dataStore = _dataStore;
 }