🌳
Change Event Bubbling
Child node changes automatically bubble up to parent nodes with full path information
Rx reactive streams, weak messaging, and pluggable scheduling
dotnet add package Apq.ChangeBubbling<PackageReference Include="Apq.ChangeBubbling" Version="1.0.*" />using Apq.ChangeBubbling.Nodes;
// Create node tree
var root = new ListBubblingNode<string>("Root");
var child = new ListBubblingNode<int>("Child");
// Establish parent-child relationship
root.AttachChild(child);
// Subscribe to change events
root.NodeChanged += (sender, change) =>
{
Console.WriteLine($"Change: {change.PropertyName}, Kind: {change.Kind}, Path: {string.Join(".", change.PathSegments)}");
};
// Child changes bubble up to parent
child.Add(42);
child.Add(100);| Framework | Version |
|---|---|
| .NET | 8.0, 10.0 (LTS) |