Simon G.
acbce3b412
- instance passed to onCreate can't be null
1 year ago
Simon G.
d79158aaa6
- allow async onCreate method by introducing async resolve
1 year ago
Simon G.
7cc36927ed
- fix factories of open generic registration
2 years ago
Simon G
7f23dc8e81
- add missing comment
3 years ago
Simon G
c92d0b4dfa
- use implicit usings
3 years ago
Simon G
430f58e1c4
- use file scoped namespaces
3 years ago
Simon G
7755f3df3d
- rename iResolve to IIocResolver
4 years ago
Simon G
3bea00c409
- allow registration of same types if registered equally
4 years ago
Simon G
52b9a4cf11
- add validation for disposeStrategies set for types that aren't disposable
4 years ago
Simon G
775afe4e45
- add validation for multiton factories
4 years ago
Simon G
3acd6adfea
- completely rework registration:
...
- creation of registrations is done in registrationCollector now
- installers don't get container anymore, get registrationCollector
- allow validation
- introduce dispose strategies (#55 )
4 years ago
Simon G
19fb3b1d0f
- add factory validation
4 years ago
Simon G
b7d0db3c9b
#54 : enabled nullable
...
- fix nullable warnings
4 years ago
Simon G
dd2e0fe4d7
#51 : get a constructor resolve stack before actually resolving parameters
...
-> no unused parameters are generated while checking if a constructor can actually be used
4 years ago
Simon G
8e2c45a5cf
- extract resolve to IResolver interface
4 years ago
Simon G
4ab55e8bfc
#52 : update visibility for registration properties
4 years ago
Simon G
d83d94e393
- refactoring
4 years ago
Simon G
bacb5979da
#50 : add property CreateMethods
4 years ago
Simon G
edfba57809
#50 : update xml comments
4 years ago
Simon G
b18c0dc858
#50 : append factory registration
...
- add withFactory fluent interface
- remove unneeded DefaultRegistration
4 years ago
Simon G
3dba5be1c6
- remove special net45 code
4 years ago
Simon G
cfa1eb816c
#46 : start code cleanup
5 years ago
Simon G
78eae75296
#45 : add comments
5 years ago
Simon G
e51298c5e0
#45 : add method to create iMultipleMultitonRegistration
5 years ago
Simon G
b324ee74fd
#45 : add first implementation of IMultipleMultitonRegistration
5 years ago
Simon G
699a852506
#12 : fix warnings and add comments
5 years ago
Simon G
0b2879ddc3
- add registration methods for OpenGenericRegistration
5 years ago
Simon G
e816546eb2
- add OpenGenericRegistration
5 years ago
Simon G
f5fefa400a
close #38 : remove UnitTestCallbackRegistration
6 years ago
Simon Gockner
da39b44fd5
#34 : OnCreate passes `TImplementation`
...
-add `TImplementation` to `ITypedRegistrationBase` and `IOnCreate` and to every inheriting interface and class
- add non generic `IOnCreate` with `Action<object>` and use it in `CreateInstance()`
- add simplified interfaces for `IMultitonRegistration` and `ITypedRegistrationBase`
6 years ago
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