We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want TinyIoC to automatically select constructor, but I do not want TinyIoC to select a constructor marked with the ObsoleteAttribute.
Since this may break compability with current resolution behaviour, what about
Container.Register<MyClass>().IgnoreObsoleteConstructors();
or
Container.IgnoreObsoleteConstructors = true;
The text was updated successfully, but these errors were encountered:
My suggestion is writing a customization class that TinyIoC can use to perform this type of work and others. See Autofixture for ideas or
http://blog.ploeh.dk/2009/09/22/CustomizingAType'sBuilderWithAutoFixture/ http://blog.ploeh.dk/2010/10/19/Convention-basedCustomizationswithAutoFixture/
https://github.com/ghostsquad/SharpZendeskApi/blob/master/SharpZendeskApi/ContractResolution/CustomizableSerializationContractResolver.cs (soon to have a home here: https://github.com/ghostsquad/Json.Net-CustomizableSerialization)
Sorry, something went wrong.
No branches or pull requests
I want TinyIoC to automatically select constructor, but I do not want TinyIoC to select a constructor marked with the ObsoleteAttribute.
Since this may break compability with current resolution behaviour, what about
or
The text was updated successfully, but these errors were encountered: