mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
More for #923
This commit is contained in:
parent
5e06d9bd26
commit
02a1770b31
7 changed files with 99 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue