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

Integrating with Autofac #149

Open
GooRiOn opened this issue Dec 11, 2017 · 3 comments
Open

Integrating with Autofac #149

GooRiOn opened this issue Dec 11, 2017 · 3 comments

Comments

@GooRiOn
Copy link
Member

GooRiOn commented Dec 11, 2017

Would be cool to create an integration package for Autofac. There are lot's of thing that we could add here so hesitate to add something in the comments ;) The simplest integration would be:

containerBuilder.RegisterValit();

Calling that we would look through the assembly and register all valitators as singletons.

@paw3lx
Copy link
Collaborator

paw3lx commented Jan 8, 2018

Sounds cool. I can take this one :)

@GooRiOn
Copy link
Member Author

GooRiOn commented Jan 8, 2018

Nice!

@dbarwikowski
Copy link
Member

dbarwikowski commented Apr 3, 2018

Actually, we are targetting for .NET Core (right?) why don't we use built-in dependency resolver and simplify to

Configure(IServiceCollection services)
{
    services.AddValit();
}

Thanks to this, we would be able to ignore existance of all DI frameworks. Tell me if I'm wrong :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants