Skip to content
This repository has been archived by the owner on May 6, 2018. It is now read-only.

Give a guessable name for tactician services #5

Merged
merged 2 commits into from
Jan 2, 2018

Conversation

lcobucci
Copy link
Owner

@lcobucci lcobucci commented Jan 2, 2018

When handling things outside of the HTTP context, we might want to use tactician buses directly (since we don't need to deserialise the request data).

This PR makes it possible by postfixing the tactician services with .inner, so if you pass command_bus and query_bus to the compiler pass' constructor you will be able to inject the buses into your services using the ids command_bus.inner and query_bus.inner.

Using the extension is way better than ignoring errors.
So that they can be directly used, instead of always going through the
CommandBus/QueryBus abstractions.

This is useful when dealing with things outside of the HTTP context.
@lcobucci lcobucci added this to the 1.0.0 milestone Jan 2, 2018
@lcobucci lcobucci self-assigned this Jan 2, 2018
@lcobucci lcobucci merged commit 7830ec6 into master Jan 2, 2018
@lcobucci lcobucci deleted the improve/use-guessable-name branch January 2, 2018 09:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant