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
Like:
Container = new DependencyInjectionContainer(_ => { _.Behaviors.ConstructorSelection = ConstructorSelectionMethod.Dynamic; // < -- Like that });
But for property. Locate type with [Import] attribute in sub container doesn't work
interface IDep{} interface IFoo{} class Dep : IDep {} class Foo : IFoo { [Import] public IDep Dep {get;init;} } // ---------------------- Container.Configure(_b=>_b.ExportAs<Dep,IDep>()); Container .CreateChildScope(_b=>_b .ExportAs<Foo,IFoo>() .ImportMembers(MembersThat.HaveAttribute<ImportAttribute>()) .Lifestyle.Singleton() ).Locate<Foo>();
The text was updated successfully, but these errors were encountered:
Sorry for the late response I've been AFK this past week. I can take a look this evening.
Sorry, something went wrong.
@ipjohnson did you ever get around to this? I am seeing similar behaviour on latest. Thanks for the awesome work!
No branches or pull requests
Like:
But for property.
Locate type with [Import] attribute in sub container doesn't work
The text was updated successfully, but these errors were encountered: