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

check for constructor arguments setting is working in conventional binding clause #58

Open
lsoft opened this issue Apr 16, 2022 · 0 comments

Comments

@lsoft
Copy link
Owner

lsoft commented Apr 16, 2022

like https://github.com/lsoft/DpdtInject#constructor-choosing

//the following statement will bind A0 and A2; A1 will be excluded due to IExclude<>
ScanInAssembliesWith<A0>()
    .SelectAllWithOpenGeneric<IA<object, object>>() //generic arguments 'object' means NOTHING! it will be removed by Dpdt, so IA<object, object> will be transformed into IA<,> (open generic)
    .ExcludeAllWithOpenGeneric<IExclude<object, object>>() //again, 'object' means nothing, as above
    .FromAllInterfaces()
    .ToItself()
    .WithSingletonScope()
    .Setup<SubsetNoOrderConstructorSetting<int, long>>() // <------------------------
    ; 

CHECK IF IT WORKS ALREADY AND WRITE A TEST IF SO!

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