Skip to content

Conversation

@Redth
Copy link

@Redth Redth commented Apr 23, 2024

Currently the default is to inspect all the assemblies in the current appdomain for types implementing IRequestHandler but it would be nice to be able to customize this resolution. This abstracts the concept out so you can provide your own resolver and suggest the types explicitly that should be used.

Currently the default is to inspect all the assemblies in the current appdomain for types implementing `IRequestHandler` but it would be nice to be able to customize this resolution.  This abstracts the concept out so you can provide your own resolver and suggest the types explicitly that should be used.
@jorgedevs jorgedevs requested a review from ctacke April 23, 2024 21:02
@Redth
Copy link
Author

Redth commented Apr 23, 2024

Maybe instead of the additional layer, just having a Type[] requestHandlerTypes = null parameter on the ctor would be better? We could then fall back to the current logic if that parameter is null (and maybe also if none of the types specified actually implement IRequestHandler).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants