How serialize and deserialize item.FQID? especially item.FQID.ServerId.UserContext

Good day!

I have to send data of camera Item from main process to child process to more fastly load of imageViewerControl. I can save Guid of camera (ObjectId), then use method VideoOS.Platform.Configuration.Instance.GetItem( ObjectId, Kind.Camera ), but it’s so long load, more 1 second.

I want to keep FQID of camera for it. And I need to make serialization of item.FQID.ServerId completely, including UserContext. I noticed attached attribute [XmlIgnore] to UserContext, but I think that there is something way to do that.

How can I do it?

Unfortunately, it is not valid to serialize UserContext, you should not do it.

OK. Thanks for the answer!:blush: