I added my plugin in the Xprotect Managment Client and I want to have mutiple instances from the same plugin(using add new).but when I do that if I changed anything in an instance of the plugin it changes in all plugin instances, but I want each instance to be seperate from the other instances, How can I do that.
Thank you in Advance.
The Access Control (MIP SDK v. 2.0) sample is able to make multiple controllers and doors.
Maybe you want something different in that case can you please elaborate on this?
Thank you for your reply, But what I am asking about is If I itegrated my plugin in Mielstone and then pressed add new to creat an instance from this plugin and pressed add new again to create another instance from the same plugin, what I figured out is whatever change I make in one instance of the two, it will change in the other too, for example if the plugin has log massage panel if one of the instances wrote something in its log massage it will be written in all instances of this plugin, so my question is how to make this instances seperate if I changed something in one of them it wont affect the rest?
I believe the Access Control (MIP SDK v. 2.0) sample does this. Compare your methods with that of the sample.
I think you are reusing objects instead of having new objects. This is very general advise but I hope you will be able to pinpoint the issue perhaps by going back to the original sample.
I will be checking out the Access Control sample, but what if we want to do the same thing in the video preview plugin sample, how can we make seperated instances from video preview plugin sample?
I suspect that you create two Item with the same FQID - objectId.
You to have a specific and different id for each.
Trying to be more precise without actually doing the exercise myself - so there is a little guessing - Look into how the VideoPreviewItemManager is different compared to xxItemManager
the problem is not related to the FQID because the FQIDs are for items not plugins.
Here is the thing, I have two instances from Video Preview sample each one of them is streaming a camera, if I pressed play in one of them the other will be played too if I pressed stop the other one will be stopped too, so how can I make them seperate?
I hope it’s more clearer
I am a bit in doubt exactly what you mean by “two instances”, but assuming that you in the VideoPreviewDefinition.ItemNodes are adding two instances to the _itemNodes list, the problem will be that both VideoPreviewItemManagers will work on the same configuration. To fix this you will need to define two different plugin-ids (need to be statically defined in the plugin) and pass each these on to the VideoPreviewItemManager constructor along with the kind guid. The manager should then store the guid in a member variable and use this instead of the VideoPreviewDefinition.VideoPreviewPluginId direct reference.