/// <summary> /// Notify a user that a reaction was placed on one of /// the users own vlogs. /// </summary> /// <remarks> /// This is dispatched to the <see cref="DispatchManager"/>. /// </remarks> /// <param name="receivingUserId">User that received the reaction.</param> /// <param name="vlogId">The id of the vlog.</param> /// <param name="reactionId">The placed reaction id.</param> public virtual Task NotifyReactionPlacedAsync(Guid receivingUserId, Guid vlogId, Guid reactionId) { var notificationContext = _notificationFactory.BuildVlogNewReaction(receivingUserId, vlogId, reactionId); _logger.LogTrace($"Notifying user {receivingUserId} that {vlogId} gained a reaction"); _dispatchManager.Dispatch <NotifyBackgroundTask <DataVlogNewReaction> >(notificationContext); return(Task.CompletedTask); }