feat: working version with scopes.

This commit is contained in:
redglow
2026-07-18 12:09:43 +02:00
parent 23e160438f
commit 04f0b5ef16
15 changed files with 120 additions and 87 deletions
+6
View File
@@ -15,4 +15,10 @@ public static class BuilderExtensions
.AddScoped<IValueGetter<TValueType>, IValueGetter<TValueType>, TDestinationScope>(Builder.NoDependencies,
_ => valueProvider.Getter);
}
public static Builder AddValueProvider<TValueType, TScope>(this Builder builder)
where TScope : RootScope
{
return builder.AddValueProvider<TValueType, TScope, TScope>();
}
}