Skip to content

Consider adding services.AddHttpContextAccessor() to AddAspNetCore() #4487

@ossendorf-at-hoelscher

Description

@ossendorf-at-hoelscher

Is your feature request related to a problem? Please describe.
I'm in the process of setting up a proof of concept solution where I need a minimum asp.net core application just to have an actual endpoint over the wire. But adding Csla to the services is not "just" calling AddCsla(o => o.AddAspNetCore()) but to also call AddHttpContextAccessor().

Describe the solution you'd like
AddAspNetCore() should internally call AddHttpContextAccessor() because it's required in that scenario anyways.
This would reduce the barrier on setting up a server. I had to check the samples to see how to correctly setup a server.

Metadata

Metadata

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions