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(); }
private async Task AddFeedNotificationTransport() { await feedRepo.AddFeedNotificationTransportIfNeeded(null); }