Added the testing notifications and discord notification #865

This commit is contained in:
Jamie.Rees 2017-06-16 17:06:05 +01:00
parent 5970ee963d
commit d73899fc53
29 changed files with 487 additions and 202 deletions

View file

@ -27,6 +27,7 @@ using Ombi.Settings.Settings;
using Ombi.Store.Context;
using Ombi.Store.Repository;
using Ombi.Core.Rules;
using Ombi.Notifications.Agents;
using Ombi.Schedule.Jobs.Radarr;
namespace Ombi.DependencyInjection
@ -84,7 +85,11 @@ namespace Ombi.DependencyInjection
services.AddTransient<IRequestServiceMain, RequestService>();
services.AddTransient(typeof(IRequestService<>), typeof(JsonRequestService<>));
services.AddSingleton<INotificationService, NotificationService>();
services.AddSingleton<INotificationHelper, NotificationHelper>();
services.AddTransient<INotificationHelper, NotificationHelper>();
services.AddTransient<IDiscordNotification, DiscordNotification>();
services.AddTransient<IEmailNotification, EmailNotification>();
}
public static void RegisterJobs(this IServiceCollection services)