private void Unregistered(object sender, NameScopeEventArgs e) { if (e.Name == _name) { _value = null; PublishNext(null); } }
private void Registered(object sender, NameScopeEventArgs e) { if (e.Name == _name && e.Element is ILogical logical) { _value = logical; PublishNext(logical); } }