Skip to content

Commit

Permalink
Merge pull request #50 from Serg046/get-rid-of-unnecessary-tags
Browse files Browse the repository at this point in the history
Get rid of unnecessary .Tags() usages
  • Loading branch information
NikolayPianikov authored Mar 26, 2024
2 parents a2925e0 + d35c72d commit 8dbce1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void Run()
DI.Setup(nameof(Composition))
.Hint(OnCannotResolve, "On")
.Bind<IDependency>().To<Dependency>()
.Bind<IService>().Tags().To<Service>().Root<IService>("Root");
.RootBind<IService>("Root").To<Service>();

var composition = new Composition();
var service = composition.Root;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void Run()
DI.Setup(nameof(Composition))
.Hint(OnDependencyInjectionContractTypeNameRegularExpression, nameof(IDependency))
.Bind<IDependency>().To<Dependency>()
.Bind<IService>().Tags().To<Service>().Root<IService>("Root");
.RootBind<IService>("Root").To<Service>();

var log = new List<string>();
var composition = new Composition(log);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void Run()
// OnDependencyInjection = On
DI.Setup(nameof(Composition))
.Bind<IDependency>().To<Dependency>()
.Bind<IService>().Tags().To<Service>().Root<IService>("Root");
.RootBind<IService>("Root").To<Service>();

var log = new List<string>();
var composition = new Composition(log);
Expand Down

0 comments on commit 8dbce1e

Please sign in to comment.