var producerImplementation = c.Get<IProducerImplementation>();
the error will simply say
Topos.Internals.ResolutionException : Could not find resolver for Topos.IProducerImplementation
Injectionist (at least in Topos) supports providing some extra error message details along with each resolve request, e.g. like so:
var producerImplementation = c.Get<IProducerImplementation>(
errorMessage: "Please remember to configure which broker implementation to use"
);
but that can be quite misleading if the broker was in fact registered, but it could not be resolved because one of its dependencies could not be resolved.
This should be fixed, so that only the custom error message "this!" from the final context.Get<Whatever>(errorMessage: "this!") is shown.
If this line fails:
the error will simply say
Injectionist (at least in Topos) supports providing some extra error message details along with each resolve request, e.g. like so:
but that can be quite misleading if the broker was in fact registered, but it could not be resolved because one of its dependencies could not be resolved.
This should be fixed, so that only the custom error message
"this!"
from the finalcontext.Get<Whatever>(errorMessage: "this!")
is shown.