Comments (1)
BoDi is a simple DI framework, so definitely it will have a smaller feature set than tools, like Autofac. SpecFlow can be configured to use Autofac (see SpecFlow.Autofac NuGet package) for complex cases.
In you case, you can still use the RegisterFactoryAs<TInterface>(Func<IObjectContainer, TInterface> factoryDelegate, string name = null)
to register classes with special constructor parameters, like _container.RegisterFactoryAs<ICustomWebDriver>((cont) => new WebDriver("sectionName"));
.
I hope this helps. Please reopen the issue if the solution does not work.
from bodi.
Related Issues (20)
- Address TODO comment in code: FactoryRegistration.Resolve should add the created object into the pool of created objects HOT 2
- Formally adopt semantic versioning and ensure all NuGet releases are appropriately tagged HOT 3
- Exception when registering types defined in the .NET Standard libraries
- Support detection of circular dependencies in dynamic factory-based registrations HOT 1
- IsRegistered<T> fails for registrations on parent containers HOT 1
- Allows collection registration and resolution
- Add two containers
- Ability to update registered instance after it has been resolved HOT 3
- Symbol index could not be retrieved
- Question: Container thread safety HOT 12
- Question: Code structure HOT 1
- Breaking code change in master HOT 2
- Releasing new 'instance per dependency' strategy HOT 1
- Does instances created by registered factories are automatically disposed?
- Receiving Error with Upgrade to Bodi 1.5 via NuGet HOT 2
- Multiple implementations are not resolved correctly HOT 7
- DisposeAsync support HOT 2
- ObjectContainer.Dispose() does not seem to be thread safe HOT 1
- Propose moving away from 'single source file' as a design guideline HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bodi.