public bool HasUserId() { var hasUserId = _decorated.HasUserId(); _logger.LogTrace($"HasUserId: {hasUserId}"); return(hasUserId); }
protected override Task InternalInvokeAsync(HttpContext context) { if (_userIdAccessor.HasUserId()) { if (!HasUserIdHeader(context)) { string userId = _userIdAccessor.FindUserId(); context.Request.Headers.Add(_userIdFinderSettings.HeaderName, userId); } } return(Task.CompletedTask); }