예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationSuccessNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public AuthenticationSuccessNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserUpdatedNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public UserUpdatedNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginUninstalledNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public PluginUninstalledNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskCompletedNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public TaskCompletedNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionStartNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public SessionStartNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlaybackStopNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public PlaybackStopNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserPasswordChangedNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public UserPasswordChangedNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PendingRestartNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public PendingRestartNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
예제 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SubtitleDownloadFailureNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public SubtitleDownloadFailureNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserLockedOutNotifier"/> class.
 /// </summary>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public UserLockedOutNotifier(
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
예제 #11
0
 public WebhookSender_Tests()
 {
     _webhookManager             = Resolve <IWebhookManager>();
     _webhookSender              = Resolve <IWebhookSender>();
     _webhookSubscriptionManager = Resolve <IWebhookSubscriptionManager>();
     _webhookEventStore          = Resolve <IWebhookEventStore>();
     _webhookSendAttemptStore    = Resolve <IWebhookSendAttemptStore>();
 }
 public WebhookSenderJob(
     IWebhooksConfiguration webhooksConfiguration,
     IWebhookSubscriptionManager webhookSubscriptionManager,
     IWebhookSendAttemptStore webhookSendAttemptStore,
     IWebhookSender webhookSender)
 {
     _webhooksConfiguration      = webhooksConfiguration;
     _webhookSubscriptionManager = webhookSubscriptionManager;
     _webhookSendAttemptStore    = webhookSendAttemptStore;
     _webhookSender = webhookSender;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemAddedManager"/> class.
 /// </summary>
 /// <param name="logger">Instance of the <see cref="ILogger{ItemAddedManager}"/> interface.</param>
 /// <param name="libraryManager">Instance of the <see cref="ILibraryManager"/> interface.</param>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 public ItemAddedManager(
     ILogger <ItemAddedManager> logger,
     ILibraryManager libraryManager,
     IServerApplicationHost applicationHost,
     IWebhookSender webhookSender)
 {
     _logger           = logger;
     _libraryManager   = libraryManager;
     _applicationHost  = applicationHost;
     _webhookSender    = webhookSender;
     _itemProcessQueue = new ConcurrentDictionary <Guid, QueuedItemContainer>();
 }
예제 #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserDataSavedNotifierEntryPoint"/> class.
 /// </summary>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 /// <param name="userDataManager">Instance of the <see cref="IUserDataManager"/> interface.</param>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 /// <param name="logger">Instance of the <see cref="ILogger{UserDataChangedNotifierEntryPoint}"/> interface.</param>
 /// <param name="userManager">Instance of the <see cref="IUserManager"/> interface.</param>
 public UserDataSavedNotifierEntryPoint(
     IWebhookSender webhookSender,
     IServerApplicationHost applicationHost,
     IUserDataManager userDataManager,
     ILogger <UserDataSavedNotifierEntryPoint> logger,
     IUserManager userManager)
 {
     _userDataManager = userDataManager;
     _logger          = logger;
     _userManager     = userManager;
     _applicationHost = applicationHost;
     _webhookSender   = webhookSender;
 }
예제 #15
0
 public WebhookBackgroundService(IWebhookSender webhookSender, IConfiguration configuration)
 {
     this.webhookSender = webhookSender;
     _configuration     = configuration;
 }
예제 #16
0
 public SettingsController(ILocationService service, IElasticClient elasticClient, IWebhookSender webhookSender)
 {
     _service       = service;
     _elasticClient = elasticClient;
     _webhookSender = webhookSender;
 }
예제 #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericNotifier"/> class.
 /// </summary>
 /// <param name="webhookSender">Instance of the <see cref="IWebhookSender"/> interface.</param>
 /// <param name="applicationHost">Instance of the <see cref="IServerApplicationHost"/> interface.</param>
 public GenericNotifier(IWebhookSender webhookSender, IServerApplicationHost applicationHost)
 {
     _webhookSender   = webhookSender;
     _applicationHost = applicationHost;
 }