YairHalberstadt / stronginject

compile time dependency injection for .NET
MIT License
845 stars 24 forks source link

Introduce IOwned<out T> and IAsyncOwned<out T> #158

Closed jnm2 closed 2 years ago

jnm2 commented 2 years ago

Closes #155, closes #157.

I went for the thing that I saw first instead of using forwarding but I'm happy to change tactics. What do you think?

jnm2 commented 2 years ago

The commit enabling Owned<T> to be given a null action was requested at https://github.com/YairHalberstadt/stronginject/issues/157#issuecomment-949428499.

YairHalberstadt commented 2 years ago

Thanks @jnm2 !

jnm2 commented 2 years ago

Sure thing, and thanks for enabling this!