Skip to content

Return found types as an array #54

@Dreamescaper

Description

@Dreamescaper

In some cases I need to process found types, and using CustomHandler is not sufficient.

Acceptance Criteria:

  1. When method with ScanForTypes attribute returns Type[] or IEnumerable, and Handler is not specified - we return collection of found types (use collection expressions in return).
  2. When method with ScanForTypes attribute returns TResponse[] or IEnumerable, and Handler method returns TResponse (i.e. somehow maps found T type to TResponse type) - we return collection of found types mapped by Handler (use collection expressions in return).
  3. If Handler return type does not correspond to collection return type - report error.
  4. It is only supported for ScanForTypes attribute, not GenerateServiceRegistrations attribute.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions