diff --git a/src/Extending Unity/BuildPlan/FooUnityExtension.cs b/src/Extending Unity/BuildPlan/FooUnityExtension.cs index 5572b67..a6cb7cf 100644 --- a/src/Extending Unity/BuildPlan/FooUnityExtension.cs +++ b/src/Extending Unity/BuildPlan/FooUnityExtension.cs @@ -13,6 +13,7 @@ namespace BuildPlanExample // applies to ALL resolutions of the type regardless of requested name. // In other words it creates 'Built-In' registration similar to Lazy or IEnumerable. Context.Policies.Set(typeof(IFoo<>), string.Empty, typeof(IBuildPlanPolicy), new FooBuildPlanPolicy()); + Context.Policies.Set(typeof(Foo<>), string.Empty, typeof(IBuildPlanPolicy), new FooBuildPlanPolicy()); // Optional } } } diff --git a/src/Extending Unity/BuildPlanCreator/FooUnityExtension.cs b/src/Extending Unity/BuildPlanCreator/FooUnityExtension.cs index a451961..3f30340 100644 --- a/src/Extending Unity/BuildPlanCreator/FooUnityExtension.cs +++ b/src/Extending Unity/BuildPlanCreator/FooUnityExtension.cs @@ -13,7 +13,7 @@ namespace BuildPlanCreatorExample // applies to ALL resolutions of the type regardless of requested name. // In other words it creates 'Built-In' registration similar to Lazy or IEnumerable. Context.Policies.Set(typeof(IFoo<>), string.Empty, typeof(IBuildPlanCreatorPolicy), new FooBuildPlanCreatorPolicy(Context.Policies)); - Context.Policies.Set(typeof(Foo<>), string.Empty, typeof(IBuildPlanCreatorPolicy), new FooBuildPlanCreatorPolicy(Context.Policies)); + Context.Policies.Set(typeof(Foo<>), string.Empty, typeof(IBuildPlanCreatorPolicy), new FooBuildPlanCreatorPolicy(Context.Policies)); // Optional } } }