Interface IStateObservable

Namespace
MavNet.Core
Assembly
MavNet.Core.dll

A source of state-change notifications with caller-controlled delivery rate. Raw delivers on every state-affecting packet; throttled rates deliver at most once per MinInterval per subscriber.

Multiple subscribers at different rates are supported and isolated — one slow subscriber does not throttle the others.

public interface IStateObservable

Methods

SubscribeState(Action, StateRate)

Subscribe to state-change notifications at the given rate. The handler may run on any thread; consumers needing UI-thread marshalling must do it themselves.

StateSubscription SubscribeState(Action handler, StateRate rate)

Parameters

handler Action
rate StateRate

Returns

StateSubscription

A handle whose Dispose() unsubscribes.