Exemplo n.º 1
0
    /// <inheritdoc/>
    public RequestId GetRequestIdFor(ServerCallContext callContext)
    {
        foreach (var header in callContext.RequestHeaders)
        {
            if (!header.IsBinary && header.Key.ToLowerInvariant() == X_REQUEST_ID_HEADER_LOWERCASE)
            {
                return(header.Value);
            }
        }

        return(RequestId.Generate());
    }