RegisterOperation fails after move to Photon3

Options
KEMBL
edited March 2012 in Photon Server
Hello all! Help Help! Can't move to Photon3 :)

Is there some examles how to use OperationCache.RegisterOperation on Photon3? Can't find it on examples for P3, only "CASE" method is observed :(

For now I have got error like:
ERROR Ph3test.Server.PhotonApplication - Operation SharedOperations.OperationChatMessage has wrong parameter count; 3 required.

When I try to use this Photon2 kind of method declaration:
OperationCache.RegisterOperation(OperationChatMessage);

[Operation(OperationCode = (byte)OperationCode.ChatMessage)]
public static OperationResponse OperationChatMessage(Peer peer, OperationRequest request)
{
...
}

which is third parameter? :?:

Comments

  • BenStahl
    Options
    The third parameter should be of the type Photon.SocketServer.SendParameters