barclayadam / blueprint

Blueprint is a framework for building high-performance HTTP apis, console apps & background processors
Apache License 2.0
7 stars 2 forks source link

[Population] Split out message population in to a number of "sources" #20

Closed barclayadam closed 4 years ago

barclayadam commented 4 years ago

The message population middleware builder is no longer tied to HTTP, instead providing a pluggable implementation of sources. The sources can declare "ownership" of properties which allows us to eliminate branches for things like JSON population if we know it's not possible for JSON to contribute anything useful.

In addition the route value code generation has been improved to write conversions directly to source, eliminating some method invocation overheads for "simple" types.

Fixes #18

sonarcloud[bot] commented 4 years ago

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 14 Code Smells

65.3% 65.3% Coverage
0.0% 0.0% Duplication