If a camera is deleted/added/changed in the Management Client software, the SDK does not return the new list until a reconnect

We are using the Configuration.Instance.GetItemsByKind(Kind.Camera) to return a list of camera items which works fine when we first connect. But if you then change, say disable a camera in the Management Client, then do another GetItemsByKind command, it will return the old list.

I tried adding a Configuration.Instance.RefreshConfiguration(EnvironmentManager.Instance.MasterSite.ServerId,Kind.Camera); before calling the GetItemsByKind, but that doesn’t seem to work.

Any ideas how I can get the cached list of camera information to update each time I call GetItemsByKind?

The only way I’ve found to get the new list with changes it to disconnect and reconnect which is undesirable.

Please have a look at the ConfigUpdated sample, if it works for you you can find code for inspiration.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configupdated/readme.html&tree=tree_2.html

https://github.com/milestonesys