Currently, all interface parameters without an attribute are inferred to be services. I like this simplicity, but it might be more convenient for developers if we inferred collection interface types like IList and IEnumerable are from the body instead. This complicates the mental model a bit and it's not that uncommon to consume multiple services using IEnumerable, but it's worth considering. See #31658 (comment)
Currently, all interface parameters without an attribute are inferred to be services. I like this simplicity, but it might be more convenient for developers if we inferred collection interface types like
IListandIEnumerableare from the body instead. This complicates the mental model a bit and it's not that uncommon to consume multiple services usingIEnumerable, but it's worth considering. See #31658 (comment)