public CompositeNotification(PluginRepository plugins, params INotification[] notifications) { this.notifiers = plugins.CherryCommands["Get All Notify Plugins"].Do(null) as NotifyPluginsRepository; foreach (var n in this.notifiers.All) { this.allNotifications[n.NotificationTypeName] = n.CreateNotification(); } foreach (var notification in notifications) { this.allNotifications[notification.TypeName] = notification; } }
public CompositeNotification(PluginRepository plugins, params INotification[] notifications) { this.notifiers = plugins.CherryCommands["Get All Notify Plugins"].Do(null) as NotifyPluginsRepository; foreach (var n in this.notifiers.All) { this.allNotifications[n.NotificationTypeName] = n.CreateNotification(); } foreach (var notification in notifications) { this.allNotifications[notification.TypeName] = notification; } }