Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Aug 10, 2024
1 parent bb1c7e0 commit 9b02ad1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Pure.DI.Core/Generator.Composition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ private void Setup() => DI.Setup(nameof(Generator))
.DefaultLifetime(Singleton)
.Bind().To<Cache<TT1, TT2>>()
.Bind().To<ObserversRegistry>()
.Bind().To(ctx =>
{
ctx.Inject<IBuilder<Unit, IEnumerable<Source>>>(out var api);
return api.Build(Unit.Shared);
})

.Bind().To((IBuilder<Unit, IEnumerable<Source>> api) => api.Build(Unit.Shared))

// PerBlock
.DefaultLifetime(PerBlock)
.Bind().To<Arguments>()
Expand Down

0 comments on commit 9b02ad1

Please sign in to comment.