Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are the Web API controllers? #9

Open
ghost opened this issue Apr 7, 2017 · 1 comment
Open

Where are the Web API controllers? #9

ghost opened this issue Apr 7, 2017 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Apr 7, 2017

Hi,

I've been looking at your solidservices project and noticed that the web api project doesn't define any controllers and it looks like you're probably doing some trickery for it to automatically generate the controllers from the commands and queries. Could you explain this a little or link me to the blog post about it?

I'm guessing you usually try and keep each controller to doing as little as possible and most of the time that controller revolves around the command, as this is what I've been doing with my MVC? The advantage of this is that I don't have constructor over injection.

Kind Regards, Richard

@dotnetjunkie
Copy link
Owner

dotnetjunkie commented Apr 7, 2017

it looks like you're probably doing some trickery for it to automatically generate the controllers from the commands and queries.

There are no controllers. The project is Controllerless.

The trick here is to have one a DelegatingHandler that will do the dispatching directly to command handlers, and one DelegatingHandler that will do the dispatching to query handlers.

Repository owner locked and limited conversation to collaborators Jan 29, 2020
@dotnetjunkie dotnetjunkie changed the title Web Api has no controllers? Where are the Web API controllers? Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant