![]() Support for several popular frameworks is also available through the "Extras" packages. ![]() There is a growing number of application integration libraries that make using Autofac with your application a snap. Resolve services from a lifetime scope - either the container or a nested scope: var taskController = container.Resolve() ![]() var builder = new ContainerBuilder() īuilder.Register(c => new TaskController(c.Resolve())) īuilder.RegisterInstance(new TaskController()) īuilder.RegisterAssemblyTypes(controllerAssembly) Register components with a ContainerBuilder and then build the component container. Our Getting Started tutorial walks you through integrating Autofac with a simple application and gives you some starting points for learning more. We're ready to answer your questions on Stack Overflow or check out the discussion forum. Need help with Autofac? We have a documentation site as well as API documentation. If you're feeling adventurous, continuous integration builds are on MyGet. There are several application integration and extended functionality packages to choose from. You can get Autofac by grabbing the latest NuGet package. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity. Autofac is an IoC container for Microsoft.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |