This commit is contained in:
Jamie.Rees 2017-01-18 08:39:10 +00:00
commit 02a1770b31
7 changed files with 99 additions and 25 deletions

View file

@ -124,6 +124,10 @@ namespace Ombi.UI
var slackService = container.Get<ISettingsService<SlackNotificationSettings>>();
var slackSettings = slackService.GetSettings();
SubScribeOvserver(slackSettings, notificationService, new SlackNotification(container.Get<ISlackApi>(), slackService));
var discordSettings = container.Get<ISettingsService<DiscordNotificationSettings>>();
var discordService = discordSettings.GetSettings();
SubScribeOvserver(discordService, notificationService, new DiscordNotification(container.Get<IDiscordApi>(), discordSettings));
}
private void SubScribeOvserver<T>(T settings, INotificationService notificationService, INotification notification)