Hi,

was there any discussion about conditional service extensions?

Sometimes, I would like to extend a different service only based on the
configuration from user, but it's not possible. Any service extension brings the
service in the service tree, and that is sometimes unwarranted, in cases
where something is just an optional dependency.

The only workaround right now is to make a service-type in a function,
but this solves the issue only partially, because the service-type is
different based on the arguments used,
it's impossible to extend this new service-type properly without
introducing another function that will extend the proper type being used
by the user... So this workaround is fine only for leaf-services.

Regards,
Rutherther

Reply via email to