Comments (3)
I need to think about your suggestion,because changing it may break existing code.
The features of my service container are simple, if you need a powerful container, you can integrate the third-party Ioc/DI container.In the question you mentioned, you can inherit the IServiceContainer interface and customize your own ServiceContainer,or you can integrate Zenject into your project.
There is another way, that is, you can customize the name for your service, use the following method:
ServiceContainer.Register<T>(string name, T target);
container.Register("serviceName1",service1);
container.Register("serviceName2",service2);
from loxodon-framework.
@vovgou That is what I did already. But I decided to report in hope it might be resolved sometime.
Regarding breaking something - I think this unlikely will happen unless you save registered services somewhere (like serialize to file) or may be lookup for services manually.
Also as an option we could have different strategy for generic classes and keep current code for usual classes.
from loxodon-framework.
I will modify it in the next version.
from loxodon-framework.
Related Issues (20)
- Any reason to implement IServiceBundle or extend AbstractServiceBundle? HOT 3
- ChainedObjectSourceProxy 存在内存泄漏 HOT 1
- Async & Await Tutorials Error HOT 1
- What is the reason of catching all exceptions in `Subject<>.Publish` HOT 1
- 請問關於數據綁定,如何注入委託函數 HOT 1
- Databinding Examples HOT 2
- log4 插件导入会报错 HOT 1
- Related to enter play mode settings HOT 6
- Git tag v2.4.5 is not aligned with the version update commit HOT 1
- [Fody]当项目中有其他包引用了Mono.Cecil相关的库文件会报错 HOT 7
- ProxyType.cs的IsParameterMatch存在问题 HOT 2
- Encryption HOT 3
- Inquiry HOT 3
- [Feature] Split the framework further HOT 1
- Loxodon.Framework.Prefs.DefaultEncryptor带参数的构造函数中key和iv没有赋值啊??? HOT 1
- 请教一下使用ResourcesViewLocator加载的资产什么时候释放呢 HOT 1
- 在FormattableTextMeshProUGUI & TemplateTextMeshProUGUI中Text.text会被自身的OnEnable设置为初始值 HOT 4
- InteractionTargetProxy的Target被意外释放 HOT 4
- 【功能需求】DataBinding:加入数据更新事件监听 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loxodon-framework.