Table of Contents

Property MaxPendingNotifications

Namespace
OBSStudioClient.Model
Assembly
OBSClient.dll

MaxPendingNotifications

Gets or sets how many notifications may wait for your handlers at the most. The default is 10,000.

public int MaxPendingNotifications { get; set; }

Property Value

int

Remarks

The notifications are raised one at a time, in order. When your handlers are slower than OBS Studio, the notifications wait in memory (also when they are posted to the NotificationContext and its thread has not run them yet). When more than this number wait, the new ones are dropped, so that the memory does not grow for ever, until your handlers have caught up. Then every object raises PropertyChanged with an empty property name, which says that all of its properties changed, and Resynchronized is raised: read again what you hold. An object that was removed in the meantime does not say so; its IsRemoved is right when you read it.

The same number bounds what is kept for you while the model is read again after a connection was lost (see Changed): when more properties than this changed meanwhile (or the model could not be read for so long that this many changed), they are not kept, and when the model is complete everything is raised as described above, once.

The model itself is not affected: it is always current, and only the notifications are dropped.