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

[CompTime] Replace partial methods with more flexible interface ICompileTimeContainer #503

Open
dadhi opened this issue Jul 1, 2022 · 0 comments
Assignees
Labels
documentation enhancement New feature or request
Milestone

Comments

@dadhi
Copy link
Owner

dadhi commented Jul 1, 2022

interface ICompileTimeContainer
{
    bool IsRegistered(Type t);
    bool TryResolve(Type t, out object service);
    IEnumerable<object> ResolveMany(Type t);
}

It may work together with #495

It maybe set or replaced via Container.Rules.

It is flexible as we can implement the same interface both with t4 or source generator.

We may pack t4 together with DryIoc.dll instead of source code only.

The interface may be used for other things, e.g. implement Pure DI by hand (he) or by other container (hehe).

@dadhi dadhi added enhancement New feature or request documentation labels Jul 1, 2022
@dadhi dadhi added this to the v6.0.0 milestone Jul 1, 2022
@dadhi dadhi self-assigned this Jul 1, 2022
@dadhi dadhi changed the title [CompTime] Replace partial impl with more flexible interface ICompileTimeContainer [CompTime] Replace partial methods with more flexible interface ICompileTimeContainer Jul 1, 2022
dadhi added a commit that referenced this issue Jul 1, 2022
dadhi added a commit that referenced this issue Jul 1, 2022
dadhi added a commit that referenced this issue Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant