Skip to content

Add support for enricher constructor dependency injection #18

Open
@osudude

Description

@osudude

In .NET core, Microsoft got rid of good old HttpContext.Current. You now have to get at it by injecting IHttpContextAccessor into your class constructor that needs to read various http header values. It would be nice if we could inject IHttpContextAccessor into our constructor for enriching values based upon the current http request context (yes, this is possible via middleware but P.I.T.A.). Enricher properties of interest would be various request headers and the user name for the current request.

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