/// <summary> /// Performs the notification /// </summary> public void Notify(object data) { // 2 count array (position 0 = user being followed, 1 = follower) var userIds = data as int[]; // Check if User is Subscribed to Follow Notifications if (!this.NotificationService.UserSubscribedTo(userIds[0], NotificationType.BrewerFollowed)) { return; } var userSummary = this.UserService.GetUserSummaryById(userIds[0]); var followerSummary = this.UserService.GetUserSummaryById(userIds[1]); var emailMessage = new BrewerFollowEmailMessage(this.WebSettings, followerSummary.Username, userSummary, this.BrewgrUrlBuilder); this.EmailSender.Send(emailMessage); }