Simon Gockner
024d820f91
#33 : add multipleRegistration handling, rename RegisterMultiton
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
cb03bae119
#33 : add IOnCreate for two interfaces
6 years ago
Simon Gockner
c25896a56e
#33 : Add extension method to convert an action:
...
Needed to handle OnCreateActions from inheriting types later on
6 years ago
Simon Gockner
165cfd16f2
prepare for #33 : create interfaces for OnCreate an WithParameters
6 years ago
Simon Gockner
fbc8c85a23
resolves #31 : create a snupgk package on build
6 years ago
Simon Gockner
c43c78a6cc
- update version to 2.1.0-beta
6 years ago
Simon Gockner
a2b2334767
- use stringBuilder to build message instead of +=
6 years ago
Simon Gockner
da1106e77f
#30 : add `IocContainerException` base exception:
...
- all exceptions inherit this base class
- allows handling of exceptions outside of the LightweightIocContainer
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
4ccb22c667
- fix header
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
ad0e588a48
- update version numbers to 2.0.1
6 years ago
Simon Gockner
75f2cc9316
- fix circular dependency check:
...
- remove successfully resolved objects from the resolve stack
- add special test case that checks for a situation where this could be wrong
6 years ago
Simon Gockner
9dcbaa5b5a
- not beta anymore
...
- update package license to file instead of deprecated url
6 years ago
Simon Gockner
a42188f687
#28 : add CircularDependencyException:
...
- throw circularDependencyException when user tries to resolve a circular dependency
- make non-generic Resolve() method private
- add resolveStack to private Resolve() and ResolveInternal<>() methods and all methods in between their calls
6 years ago
Simon Gockner
d7b3a5eb99
- use generic Resolve<>() function from factory:
...
preperation for #28
6 years ago
Simon Gockner
7b0e2feee0
- update package versions to 2.0.0-beta2
6 years ago
Simon Gockner
659a45dd96
#27 : throw exception when no public constructor is found
6 years ago
Simon Gockner
ffbce37561
#26 : add noMatchingConstructorFoundException:
...
- throw detailed exception when no matching constructor is found
- add innerExceptions with information about the constructors trying to be used
6 years ago
Simon Gockner
981dd219ad
- update version numbers
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
69104a6e14
close #22 : return the registered `IRegistrationBase`
6 years ago
Simon Gockner
c80f11d7ce
- update xml comments
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
3dc888085d
- update version numbers to 1.3.0
6 years ago
Simon Gockner
14311a69a3
#22 : Simplify registration:
...
- call register methods directly from container
- make RegistrationFactory internal
6 years ago
Simon Gockner
78ae31e511
- not beta anymore
6 years ago
Simon Gockner
de702e72a9
#21 : allow registration of a type without an interface
6 years ago
Simon Gockner
d91392e382
#20 : add method to check if type is installed
6 years ago
Simon Gockner
8945fc5c46
- update nuget packages
6 years ago
Simon Gockner
ae03554d70
- change version to 1.2.0-beta
6 years ago
Simon Gockner
dbb659bf39
#19 : use `ConditionalWeakTable<>` for _multitons
6 years ago
Simon Gockner
e87cd58973
- update version number
6 years ago
Simon Gockner
10b9c58766
- move assemblyInfo to properties folder
6 years ago
Simon Gockner
887580faff
#18 : make exceptions internal
7 years ago
Simon Gockner
d3e94bc131
- update version to 1.1.0, no beta
7 years ago
Simon Gockner
eda4b153cb
- change location of documentation file
7 years ago
Simon Gockner
10a56424f0
fix #16 : add check if argument is type of the parameter type
7 years ago