public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
        {
            if (commentsFeedNotificationTransportId == null)
            {
                commentsFeedNotificationTransportId = await feedRepo.GetCommentsFeedNotificationTransportId();
            }

            var userId = User.GetUserId();
            await feedRepo.AddFeedNotificationTransportIfNeeded(userId);

            await next();
        }
Esempio n. 2
0
 private async Task AddFeedNotificationTransport()
 {
     await feedRepo.AddFeedNotificationTransportIfNeeded(null);
 }