/// <summary> /// Initializes a new instance of the <see cref="NotificationService"/> class. /// </summary> /// <param name="notificationRepository">The notification repository.</param> /// <param name="cacheManager">The cache manager.</param> /// <param name="generalSettings">The general settings.</param> /// <param name="coreNotificationService">The core notification service.</param> public NotificationService( IRepository <Notification> notificationRepository, ICacheManager cacheManager, IGeneralSettings generalSettings, ICoreNotificationService coreNotificationService) { this.notificationRepository = notificationRepository; this.cacheManager = cacheManager; this.generalSettings = generalSettings; this.coreNotificationService = coreNotificationService; }
public NotificationService( IRepository <Notification> notificationRepository, ICoreNotificationService coreNotificationService, ICacheManager cacheManager, IRepository <EmailNotification> emailNotificationRepository, IUserService userService, IPublisher publisher, IConfiguration configuration) { this.notificationRepository = notificationRepository; this.coreNotificationService = coreNotificationService; this.cacheManager = cacheManager; this.emailNotificationRepository = emailNotificationRepository; this.userService = userService; this.publisher = publisher; this.configuration = configuration; }