using System.Reactive.Linq; using InnovEnergy.Lib.Protocols.DBus; using InnovEnergy.Lib.Victron.VeDBus; namespace InnovEnergy.GuiFeeder; public static class Utils { public static IObservable> ObserveVeService(this DBusConnection dbus, Func selector) { return dbus .ObservePropertiesOfServices(selector) .StartWith(Array.Empty()); } }