Pure.DI icon indicating copy to clipboard operation
Pure.DI copied to clipboard

Pure DI for .NET without frameworks!

Results 7 Pure.DI issues
Sort by recently updated
recently updated
newest added

I've been learning about this project and I'm excited to try it out. I think it has great potential. Unfortunately, the name is pretty bad. It's not imaginative nor is...

Hi While trying this out I ran into an issue that I've been unable to solve. Most of our services needs to know the identity of the current user. In...

question

Hello! I'm not sure about these topics, so I post them here only fyi. 1. If I understand the things right, then https://github.com/DevTeam/Pure.DI/blob/master/src/Pure.DI/SourceGenerator.cs#L27 means you are collecting all syntax nodes...

research

For example: ```c# interface IDependency; class Dependency : IDependency; interface IService; class Service(IDependency dependency) : IService; DI.Setup(nameof(Composition)) .Bind().To() .Bind().To() .Root("MyRoot"); var composition = new Composition(); var root = composition.MyRoot(); ```

enhancement

Right now: ```c# DI.Setup(nameof(Composition)) .Bind().To() .Bind("Other").To() .Root("MyRoot") .Root("SomeOtherService", "Other"); ``` An API such as this is proposed: ```c# DI.Setup(nameof(Composition)) .RootBind("MyRoot").To() .RootBind("SomeOtherService", "Other").To() ``` Thus we could add a new API...

enhancement

### Discussed in https://github.com/DevTeam/Pure.DI/discussions/23 Originally posted by **mysteryx93** February 27, 2023 Could you add [Splat](https://github.com/reactiveui/splat) to the benchmark? Requires [Splat.DI.SourceGenerator](https://github.com/reactiveui/Splat.DI.SourceGenerator) Pure.DI and Splat actually look pretty similar, I'm curious as...

documentation