Simon Gockner
4620dfca85
- update version to 2.1.0-beta2
6 years ago
Simon Gockner
47d99ca9b9
- update version to 2.1.0-beta2
6 years ago
Simon Gockner
24319abb46
#33 : add multipleRegistrations for up to five interfaces
6 years ago
Simon Gockner
325320c8a2
- update nuget packages
6 years ago
Simon Gockner
7d50ea5590
Update LightweightIocContainer.xml
6 years ago
Simon Gockner
57a985420a
#33 : add test to resolve a singleTypeRegistration with lifestyle singleton
6 years ago
Simon Gockner
3eb25d84fc
#33 : add interfaceSegregationTest
6 years ago
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
ad0c53189b
#33 : add onCreateTest and remove it from RegistrationBaseTest
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 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