diff --git a/readme/global-compositions.md b/readme/global-compositions.md index 62af7162..98fdec81 100644 --- a/readme/global-compositions.md +++ b/readme/global-compositions.md @@ -22,7 +22,11 @@ class MyGlobalComposition class MyGlobalComposition2 { static void Setup() => - DI.Setup(kind: Global) + DI.Setup("Some name", kind: Global) + .Hint(Hint.OnCannotResolve, "Off") + .Hint(Hint.OnCannotResolvePartial, "On") + .Hint(Hint.OnNewRoot, "Off") + .Hint(Hint.OnNewRootPartial, "On") .Hint(Hint.ToString, "On"); } ``` diff --git a/readme/service-collection.md b/readme/service-collection.md index 95e496cb..2dafbc61 100644 --- a/readme/service-collection.md +++ b/readme/service-collection.md @@ -10,6 +10,7 @@ using Pure.DI.MS; using Shouldly; using Microsoft.Extensions.DependencyInjection; using Pure.DI; +using Pure.DI.MS; var composition = new Composition(); var serviceCollection = composition.ServiceCollection; @@ -38,8 +39,8 @@ partial class Composition : ServiceProviderFactory CreateServiceCollection(this); static void Setup() => + DI.Setup() - .DependsOn(Base) .Bind("Dependency Key").As(Lifetime.Singleton).To() .Bind().To() .Root(tag: "Dependency Key")