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

Should throw an error Definition does not have a public empty constructor #2413

Closed
SimonCropp opened this issue Sep 25, 2014 · 0 comments
Closed
Milestone

Comments

@SimonCropp
Copy link
Contributor

For Transport, Logging and Persistence definitions.

since this UseTransportExtensions.UseTransport<T>() has a new() constraint
https://github.com/Particular/NServiceBus/blob/develop/src/NServiceBus.Core/Unicast/Transport/Config/UseTransportExtensions.cs#L15

then this UseTransportExtensions.UseTransport(Type)
https://github.com/Particular/NServiceBus/blob/develop/src/NServiceBus.Core/Unicast/Transport/Config/UseTransportExtensions.cs#L28 should also verify that the type has a public constructor.

@SimonCropp SimonCropp added this to the 5.1.0 milestone Sep 25, 2014
@SimonCropp SimonCropp changed the title Should throw an error Transport definition does not have a public empty constructor Should throw an error Definition does not have a public empty constructor Oct 24, 2014
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

2 participants