Cant refresh Configuration

By using the Configuration.Instance.GetItemsByKind(Kind.Camera) to return a list of camera items works fine at the first connection. But then if anything changes, for example changing the name of a camera in the Management Client, then do another GetItemsByKind command, it will return the old list.

I tried using Configuration.Instance.RefreshConfiguration before calling the GetItemsByKind, but that the returned list is still the pld one withput the changes.

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.

Instead of RefreshConfiguration please try VideoOS.Platform.SDK.Environment.ReloadConfiguration

VideoOS.Platform.SDK.Environment.ReloadConfiguration(EnvironmentManager.Instance.CurrentSite);