Unity 5.5 - get callback from server

Hello.

I’ve upgraded my project from Unity 5.4.1 to 5.5 and I’ve got UNET weaver error. It is caused by method:

[Command]
    public void CmdGetUID(NetworkIdentity sender, UnityAction<int> callback) {
//Some logic here...
}

Which basicaly allows any client to identify (easily and reliably) the owner of any object even if scene is changed, players dissconects and new players came.
The method was working great on Unity 5.4.1. While I don’t have to, I would like to upgrade project to new version of the engine.
So my question is how in a client can request for a specific data to be generated by the server and send it back to the specific object for all clients (in Unity 5.5)?

I’m surprised this worked in 5.4 - i don’t think you can send/serialize a UnityAction. Not to mention, what does that even mean wrt a client calling this method - what does the callback point to?

It run a Rpc method on the same (replicated over the network) game object. But the UnityAction parameter isn’t main issue. In Unity 5.5 I cannot even use a NetworkIdentity as parameter for Cmd and Rpc calls.

Huh - i think we only ever sent the NetworkInstanceId’s, never the whole NetworkIdentity…