Simon G
33d857826f
- update readme
6 years ago
Simon Gockner
ca3c9ce788
- update version to 2.1.0-beta
6 years ago
Simon Gockner
fbc8c85a23
resolves #31 : create a snupgk package on build
6 years ago
Simon Gockner
fb37a91582
- update version to 2.1.0-beta
6 years ago
Simon Gockner
c43c78a6cc
- update version to 2.1.0-beta
6 years ago
Simon Gockner
d8dfb7a3cd
- add test case (no stack available)
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 G
0ff27b114b
Merge pull request #32 from SimonG96/ChangeFluentRegistration_#29
...
Change fluent registration #29
6 years ago
Simon Gockner
cc52cd3361
#29 : add ISingleTypeRegistration unit test
6 years ago
Simon Gockner
47931b3dd1
#29 : fix return value of `WithFactoryMethod()`
6 years ago
Simon Gockner
3c636a786e
#29 : add unit test for withParameters method
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
d4f5b8eeb5
- update version number to 2.0.1
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
c86f604ec3
- not beta anymore
6 years ago
Simon Gockner
9dcbaa5b5a
- not beta anymore
...
- update package license to file instead of deprecated url
6 years ago
Simon Gockner
9f8e598f6a
- add .md file extension
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
15fb9c7d5b
#26 : add unit test
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
97cbb46d2f
- update version number to v1.3.0
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
2d4aa06c2c
- update version
6 years ago
Simon Gockner
78ae31e511
- not beta anymore
6 years ago
Simon Gockner
08c3880b77
Merge branch 'master' of https://github.com/SimonG96/LightweightIocContainer
6 years ago
Simon Gockner
8cdeb19770
- add more registrationFactory tests
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 G
c28cdaef39
- change to on: release
6 years ago
Simon G
b9b1dc9b8b
- add test outputs
6 years ago
Simon G
98f513eb7a
- add checkout
6 years ago