Commit Graph

65 Commits

Author SHA1 Message Date
amacocian 820b1c9c2e Add ServiceManager support for parent manager (#16)
Prepare integration project
2022-09-09 09:53:35 +00:00
amacocian a9ca960106 Expose more IServiceManager functionality in IServiceProducer and IServiceProvider (#15) 2022-09-06 11:36:10 +00:00
amacocian 64e76c5b4e Add CODEOWNERS (#14) 2022-09-06 10:05:42 +00:00
amacocian 499712671e Move RegisterSolver to IServiceProducer (#13) 2022-09-06 11:53:00 +02:00
amacocian 56c858e61b Package project in CD pipeline 2022-05-12 18:37:00 +02:00
amacocian e6969d4a1b Fix CD pipeline (#12) 2022-05-12 18:31:57 +02:00
amacocian dd1b589b5d Implement DoNotInject attribute (#11)
* Implement DoNotInject attribute

* Upgrade pipelines
2022-05-12 18:13:28 +02:00
amacocian 76462bf368 Introduce priority for preferred constructor (#10) v1.7.2 2022-05-05 08:10:30 +02:00
amacocian 84728090d5 Introduce preferred constructors (#9) v1.7.1 2022-05-04 14:30:14 +02:00
amacocian df5e389934 IsRegistered query DependencyResolvers (#8) v1.7 2022-05-02 08:59:55 +02:00
Alexandru Macocian 8b54ba04d5 Fix readme link 2021-11-12 17:16:43 +01:00
Alexandru Macocian 6dcb5b2456 Improve README.md with new functionality 2021-11-12 17:15:21 +01:00
amacocian b70853b22a Introduced ReadOnly for scoped managers.
Ability to override IsReadOnly when creating scope.
Introduced method to deal with singletons when scoped manager implements them instead of master manager.
v1.6
2021-10-25 14:26:05 +02:00
Alexandru Macocian 4ce4d7fd5b Method for IsRegistered to check if a service is already registered v1.5.5 2021-10-19 12:46:52 +02:00
Alexandru Macocian 3d42622c0b Remove GC.SupressFinalize v1.5.4 2021-10-02 07:36:48 +02:00
Alexandru Macocian d6834e0215 Make ServiceManager dispose services.
Scoped manager disposes only scoped services.
Added parameter to instruct manager to register all interfaces of a type.
v1.5.3
2021-10-02 07:07:35 +02:00
amacocian 30705c58cc Increase code coverage
Fix exception handling
v1.5.2
2021-09-07 12:55:58 +02:00
amacocian 89df62129d Return OfType based on object type instead of interface type v1.5.1 2021-06-17 12:53:31 +02:00
amacocian d3a9ed7894 Ability to return all services of a specified type (#4) v1.5 2021-06-11 10:01:24 +02:00
amacocian d80d3aaa67 Merge pull request #3 from AlexMacocian/alexmacocian/scoped-singleton-calls-original-manager
Scoped ServiceManager calls original ServiceManager when resolving singletons
v1.4.3
2021-06-03 13:23:16 +02:00
Alexandru Macocian 4894af8b9a Added new UT to verify that singleton factories are only called when once 2021-06-03 13:21:58 +02:00
Alexandru Macocian 25c3f771db Fixed warnings 2021-06-03 13:15:06 +02:00
Alexandru Macocian 1a012c5d49 Scoped ServiceManager calls original ServiceManager when resolving singletons 2021-06-03 13:03:29 +02:00
amacocian d13914224b Merge pull request #2 from AlexMacocian/alexmacocian/scoped-own-lists
Scoped servicemanager should have own lists
v1.4.2
2021-06-01 19:46:21 +02:00
Alexandru Macocian 12971f17cf Scoped servicemanager should have own lists 2021-06-01 19:44:52 +02:00
amacocian 028d77d763 Merge pull request #1 from AlexMacocian/alexmacocian/ci-cd-pipelines
Implement CI and CD pipelines
2021-06-01 17:42:52 +02:00
Alexandru Macocian bdcf6c6632 Disable CD pipeline on PRs 2021-06-01 17:41:07 +02:00
Alexandru Macocian 18ad56d234 Use default environment to access secret 2021-06-01 17:37:50 +02:00
Alexandru Macocian f9abcea7ce Update to 1.4.1 to check publish nuget step 2021-06-01 17:32:31 +02:00
Alexandru Macocian 68e32fb942 replace variable with direct value 2021-06-01 17:26:59 +02:00
Alexandru Macocian 09498e229a Enable allow unsecure commands 2021-06-01 17:23:44 +02:00
Alexandru Macocian 08f9eab707 Fixed in cd pipeline 2021-06-01 17:13:16 +02:00
Alexandru Macocian ff108a7f78 Fixed cd pipeline build mention 2021-06-01 16:58:40 +02:00
Alexandru Macocian df4045dada Fixed some step namings in pipelines 2021-06-01 16:48:21 +02:00
Alexandru Macocian 33f0487833 Change test proj to net5.0 2021-06-01 16:47:24 +02:00
Alexandru Macocian 0e11102814 Implement CI and CD pipelines 2021-06-01 16:40:52 +02:00
amacocian 9268dea41e Update README.md 2021-06-01 16:28:34 +02:00
Alexandru Macocian 12fc5e202b Merge branch 'master' of https://github.com/AlexMacocian/Slim 2021-06-01 16:25:57 +02:00
Alexandru Macocian 3c9e649f52 Ability to create scoped service providers and set scoped service lifetime. 2021-06-01 16:25:29 +02:00
amacocian 42faa9242b Update README.md 2021-05-17 10:54:19 +02:00
Alexandru Macocian 7725f1fac2 Fix when one resolver calls another nested resolver. 2021-05-14 09:08:57 +02:00
Alexandru Macocian f31dd77578 Use resolver for undeclared types. 2021-05-09 23:24:20 +02:00
Alexandru Macocian a0a4eb78ec Provide reference to service provider during manual resolving. 2021-05-09 23:04:48 +02:00
Alexandru Macocian a5fb217aa9 Fix UTs 2021-05-07 13:35:10 +02:00
Alexandru Macocian 8184f3b644 Introduce manual resolvers for special cases. 2021-05-07 13:33:21 +02:00
Alexandru Macocian d5d7b4cad5 Unified service registration.
Fixed a bug where when one constructor failed, no others were called.
2021-05-02 18:24:37 +02:00
Alexandru Macocian 9b435a910d Added license 2021-03-26 12:13:50 +01:00
amacocian 9e82e6a958 Added comments to new functionality in readme 2021-02-17 16:09:11 +01:00
amacocian b156babf06 Method to register a service for all its interfaces.
Method to register the current servicemanager.
2021-02-17 16:03:24 +01:00
Alexandru Macocian d572b22e21 Update to 1.1.3 2021-02-08 14:57:38 +01:00