Simon Gockner
24319abb46
#33 : add multipleRegistrations for up to five interfaces
6 years ago
Simon Gockner
66b31582c0
#33 : add iMultipleRegistration to registrationFactory, rename RegisterMultiton
6 years ago
Simon Gockner
8025f104d2
#33 : add IMultipleRegistration
6 years ago
Simon Gockner
b1387dfbe8
#33 : implement typedRegistrationBase and IOnCreate
6 years ago
Simon Gockner
d682ebc233
#33 : add typedRegistrationBase
6 years ago
Simon Gockner
3f83b544d8
#33 : remove IOnCreate from iRegistrationBase
6 years ago
Simon Gockner
47931b3dd1
#29 : fix return value of `WithFactoryMethod()`
6 years ago
Simon Gockner
62b36cb506
#29 : add `WithParameters()` method to IRegistrationBase:
...
- pass parameters that will be used to create an instance of the registered type
- add new method `UpdateArgumentsWithRegistrationParameters()` that handles these parameters in the `CreateInstance<>()` method
6 years ago
Simon Gockner
f1e4f5e2f9
#29 : mark IUnitTestResolveCallback as deprecated
6 years ago
Simon Gockner
6e3a1c875e
#29 : remove unused usings
6 years ago
Simon Gockner
503b583368
#29 : fix comments for new IDefaultRegistration
6 years ago
Simon Gockner
5f3c9e2832
#29 : add ISingleTypeRegistration:
...
- add `WithFactoryMethod()` to set a `FactoryMethod` that gets called when an instance of the registered type is created
- allow registration of only an interface, if you resolve only an interface without a factoryMethod an exception is thrown
6 years ago
Simon Gockner
62627ca923
- Refactoring, prepare for #29 :
...
- rename IRegistrationBase to IRegistration
- split IDefaultRegistraton into IRegistrationBase and a new IDefaultRegistration (same with implementations)
6 years ago
Simon Gockner
d7b3a5eb99
- use generic Resolve<>() function from factory:
...
preperation for #28
6 years ago
Simon Gockner
f852fedae3
#25 : remove non-generic register methods
6 years ago
Simon Gockner
cb4ea88597
- add boxing for simple datatypes in factory creation
...
- add test for factories with simple datatypes as parameters
6 years ago
Simon Gockner
f171c81e33
- fix comments
6 years ago
Simon Gockner
64d3a5823c
#24 : add UnitTestResolveCallback and needed registration
6 years ago
Simon Gockner
14311a69a3
#22 : Simplify registration:
...
- call register methods directly from container
- make RegistrationFactory internal
6 years ago
Simon Gockner
de702e72a9
#21 : allow registration of a type without an interface
6 years ago
Simon Gockner
90efa03f22
- fix double comment in headers
7 years ago
Simon Gockner
4fca7848bc
- fix resharper warnings
7 years ago
Simon Gockner
e1533140b2
- refactoring of xml comments
7 years ago
Simon Gockner
42b9eb53c9
#3 : improve multiton usage:
...
- allow declaration of interfaces as scope, but still getting instance through implementation
- add new method `ClearMultitonInstances<T>()` that allows to clear the created multiton instances for a given type
- handle `ClearMultitonInstance<T>()` method in abstract factories and call the corresponding method in the IIocContainer
- update tests
7 years ago
Simon Gockner
6e66631636
- add posibility to register types that use open generics
7 years ago
Simon Gockner
6782c8e1e9
- add targetFramework .net45
...
- change creation of empty array for .net45
7 years ago
Simon Gockner
d45ca22ec8
#10 : add assemblyInstaller and fromAssembly helper
7 years ago
Simon Gockner
0e85f2fcf4
- fix some resharper issues
7 years ago
Simon Gockner
fb57e94fb6
- remove IIocContainer backing field
...
- pass IIocContainer as a parameter to CreateFactory()
7 years ago
Simon Gockner
c999234911
- add multiton lifestyle ( #3 )
...
- update tests
- bump c# language version to 7.3
7 years ago
Simon Gockner
77e158f564
#6 : start refactoring `Injector` to Ioc
7 years ago
Simon Gockner
c773fdc64d
- fix IL code generation in TypedFactoryRegistration
...
- change signature of Resolve(Type, object[]) back to this correct one
7 years ago
Simon Gockner
42cc514bcc
- size of the created array should only be the number of arguments ( #5 )
7 years ago
Simon Gockner
94cc484f0f
- really push an empty array onto the stack ( #5 )
7 years ago
Simon Gockner
706ca44b34
- add registration implementations
7 years ago