redarrowlabs / Argo

:squirrel: c# object => json.api relational mapping
MIT License
7 stars 3 forks source link

.net core-esk middleware request pipeline builder #35

Closed engenb closed 7 years ago

engenb commented 7 years ago

thinking of adding an IClientBuilder interface that is similar to asp.net core's IAppBuilder with .Use(object[] args) signature.

T would need to be a DelegatingHandler with a ctor signature matching the arg types given.

constructed DelegatingHandler would have its InnerHandler set to the next DelegatingHandler in the pipeline.

last DelegatingHandler in the pipeline gets the default HttpClientHandler