Skip to content

Commit

Permalink
Update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Mar 7, 2024
1 parent 49d2152 commit 2c23af1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ internal class $(CompositionName)
[Conditional("DI")]
private static void Setup() =>
DI.Setup(nameof($(CompositionName)), CompositionKind.Global)
.Bind<IInput, IOutput>().As(Singleton).To<ConsoleAdapter>();
.Bind().As(Singleton).To<ConsoleAdapter>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ internal partial class $(CompositionName)
[Conditional("DI")]
private static void Setup() =>
DI.Setup(nameof($(CompositionName)))
.Bind<IInput, IOutput>().As(Singleton).To<ConsoleAdapter>()
.Bind().As(Singleton).To<ConsoleAdapter>()
.Root<Program>("Root");
}

0 comments on commit 2c23af1

Please sign in to comment.