public void Invoke(Packet packet) { if (!packet.isRPCReturn) { return; } RPCHandler handler = this._rpcHandlers[packet.srcPid]; this._rpcHandlers.Remove(packet.srcPid); handler.Invoke(null, packet); }
public void Invoke(IUserToken token, Packet packet) { if (!packet.isRPCReturn) { return; } Dictionary <ushort, RPCHandler> map = this._rpcsHandlers[token]; RPCHandler handler = map[packet.srcPid]; map.Remove(packet.srcPid); handler.Invoke(token, packet); }