Esempio n. 1
0
 public override void HandleMsg(IPacketMsg packetMsg)
 {
     if (packetMsg.MsgType == EMsg.ClientAuthListAck)
     {
         var authAck      = new ClientMsgProtobuf <CMsgClientAuthListAck>(packetMsg);
         var acknowledged = new TicketAcceptedCallback(authAck.TargetJobID, authAck.Body);
         Client.PostCallback(acknowledged);
     }
     else if (packetMsg.MsgType == EMsg.ClientTicketAuthComplete)
     {
         var complete = new ClientMsgProtobuf <CMsgClientTicketAuthComplete>(packetMsg);
         var inUse    = new TicketAuthCompleteCallback(complete.TargetJobID, complete.Body);
         Client.PostCallback(inUse);
     }
 }
Esempio n. 2
0
 private void OnTicketAuthComplete(TicketAuthCompleteCallback obj)
 {
     // called when ticket was used
     return;
 }