SCIMReferenceCode icon indicating copy to clipboard operation
SCIMReferenceCode copied to clipboard

Is TryGetRequestIdentifier() extension method incomplete?

Open MithunChopda opened this issue 1 year ago • 0 comments

    public static bool TryGetRequestIdentifier(this HttpRequestMessage request, out string requestIdentifier)
    {
        request?.Headers.TryGetValues("client-id", out IEnumerable<string> _);
        requestIdentifier = Guid.NewGuid().ToString();
        return true;
    }

What is the purpose of request?.Headers.TryGetValues("client-id", out IEnumerable<string> _)?

MithunChopda avatar Nov 15 '23 03:11 MithunChopda