Commit Graph

43 Commits

Author SHA1 Message Date
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
Alexandru Macocian 7523d3183a Merge branch 'master' of https://github.com/AlexMacocian/Slim 2021-02-08 14:56:25 +01:00
Alexandru Macocian f8706b06bc Fix mistake in non-generic register method signature. 2021-02-08 14:56:04 +01:00
amacocian 7beeb71e44 Update README.md 2020-12-03 01:13:39 +02:00
Alexandru Macocian f06a49bb4a Method to build all singletons.
Unit test.
2020-12-03 01:11:33 +02:00
amacocian cff498f3b1 Create README.md
Readme with some of the use cases.
2020-11-23 21:07:01 +01:00
Alexandru Macocian 3a889d1360 Add Clear method to IServiceManager.
Call IDisposable.Dispose on implemented singletons.
2020-11-23 20:53:33 +01:00
Alexandru Macocian dffb9ee21b Added IServiceProducer interface for better access to produce services.
Added exception catching and handling.
Added code comments.
2020-11-18 18:38:49 +01:00
Alexandru Macocian e0373b91bc Saving created singletons as their actual types. 2020-11-13 18:31:58 +01:00
Alexandru Macocian 00c170b6a0 Updates to 1.0.3 2020-11-13 16:20:45 +01:00
Alexandru Macocian f41b8c57c1 ServiceManager now stores singletons with their actual type.
When requesting singletons, look for singletons by both the interface type and the actual type.
Test case covering mentioned issue.
2020-11-13 16:19:13 +01:00
Alexandru Macocian 5495422a11 Improved exception messages and flow 2020-11-12 17:08:20 +01:00
Alexandru Macocian 8ee639fd84 Add details to nuget build 2020-11-12 13:51:23 +01:00
Alexandru Macocian c8bc1a15de Create nuget package on build 2020-11-12 13:29:27 +01:00
Alexandru Macocian 1cd4c47b09 Add project files. 2020-11-12 13:03:56 +01:00
Alexandru Macocian 2b6ad643c7 Add .gitignore and .gitattributes. 2020-11-12 13:03:54 +01:00