Where I can put custom operation in LoadBalancing

Hai guys, iam tired for searching where i can put custom operation in loadbalancing ? i already read for add operation documentation in photon but where exactly i must change the code to allow custom operation,

I send OperationRequest like this

client.peer.OpCustom(1, "Hello World", true)

but i get still error

OperationRespone !: ReturnCode: -2 (unknow operation code).parameter{}

can anyone tell me where i can put custom operation in loadbalancing project? Thanks

Best Answer

Answers

  • Thanks a lot @chvetsov you very helpful