/// <summary> /// Initializes a new instance of the <see cref="NotificationService"/> class. /// </summary> /// <param name="subscribedUserStore">Repository subscribed users</param> /// <param name="notifcationStore">Repository of notifications</param> public NotificationService(INotificationSubscribedUserRepository subscribedUserStore, INotificationRepository notifcationStore, IValidator <NotificationDto> validator, IHubContext <INotificationProxy> signulRHub) { this._subscribedUserStore = subscribedUserStore; this._notifcationStore = notifcationStore; this._validator = validator; _signulRHub = signulRHub; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationSubscribedUserService"/> class. /// </summary> /// <param name="subscribedUserStore">Subscribed users repository</param> public NotificationSubscribedUserService(INotificationSubscribedUserRepository subscribedUserStore) { _repository = subscribedUserStore; }