Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inherent DI support #17

Closed
glennblock opened this issue Dec 30, 2014 · 4 comments
Closed

Add inherent DI support #17

glennblock opened this issue Dec 30, 2014 · 4 comments

Comments

@glennblock
Copy link

Being that this is a new stack, it would be great is if was designed with IoC in mind from the get go.

This means ideally then runtime and all its components can be constructed via a container. Custom user components like controls could have dependencies injected as well, all via ctor injection.

I would recommend looking to Fubu MVC and also ASP.NET MVC/Web API for inspiration.

@grokys
Copy link
Member

grokys commented Dec 31, 2014

Hi Glenn,

I would be interested to hear your thoughts on this. I agree that it's best to do try to get this right now while things are still fresh.

Could you give examples of some use-cases you have in mind?

@nerdshark
Copy link

These are just a few really general examples, but making Perspex DI-friendly would make it really easy to build composable application shells, such as:

Not only would having DI support baked in (whether through a specific framework, or via an interface implemented by the user) make it easier to build composable applications, it would make it easier to build applications that gain reliability by isolating parts of the application in their own process, like Chrome (and, soon, Firefox) do. Baktun Shell is an example of this in .NET.

@grokys
Copy link
Member

grokys commented Mar 2, 2015

Thanks for your input @nerdshark. Is there anything in particular that you think is missing today, or could be implemented today? I'd like to hear some more concrete proposals surrounding this.

@glennblock
Copy link
Author

I will try to find some cycles to give you an illustration of what I mean.
On Tue, Aug 2, 2016 at 5:20 PM Steven Kirk notifications@github.com wrote:

Closed #17 #17.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#17 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAInRLJFvafc5_2aIb24kIFgfEdGb3nwks5qb97qgaJpZM4DNT5Y
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants