public string FindUserId()
        {
            var userId = _decorated.FindUserId();

            _logger.LogTrace($"UserId: {userId}");
            return(userId);
        }
 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);
 }