jamescrosswell / CommandRouting

A DNX alternative to MVC that lets you route directly to CQRS style command handlers.
MIT License
3 stars 3 forks source link

CommandRouteBuilder implements IRouteBuilder #11

Closed bruno-garcia closed 8 years ago

bruno-garcia commented 8 years ago

CommandRouteBuilder required an implementation of IRouteBuilder as a dependency. It looked to be like, as its name says, that's the builder itself. Having CommandRouteBuilder implement IRouteBuilder simplifies both the consumer code (refer to Startup.cs) and the builder code itself (no longer requires IRouteBuilder which could or could not have a IServiceProvider available)