Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use Func to replace the Reflection in ProtocolProviderFactory #1

Open
lindexi opened this issue Jul 2, 2020 · 0 comments
Open

Comments

@lindexi
Copy link

lindexi commented Jul 2, 2020

We use the RegisterProtocolHandler to give a type to protocolHandlers field, and then we use the CreateFromType to create it.

And the CreateFromType will use Reflection to create the IProtocolProvider.

Can we send the Func<IProtocolProvider> to RegisterProtocolHandler to register the protocol handler and create it by a Func?

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

No branches or pull requests

1 participant