Skip to content

Is TryGetRequestIdentifier() extension method incomplete? #94

@MithunChopda

Description

@MithunChopda
    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> _)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions