Example #1
0
        void HandleBattlenetRequest(BattlenetRequest request)
        {
            var handler = Global.ServiceMgr.GetHandler(request.Method.GetServiceHash(), request.Method.GetMethodId());

            if (handler != null)
            {
                handler.Invoke(this, request.Method, new CodedInputStream(request.Data));
            }
            else
            {
                SendBattlenetResponse(request.Method.GetServiceHash(), request.Method.GetMethodId(), request.Method.Token, BattlenetRpcErrorCode.RpcNotImplemented);
                Log.outDebug(LogFilter.SessionRpc, "{0} tried to call invalid service {1}", GetPlayerInfo(), request.Method.GetServiceHash());
            }
        }
Example #2
0
 void HandleBattlenetRequest(BattlenetRequest request)
 {
     Global.ServiceMgr.Dispatch(this, request.Method.GetServiceHash(), request.Method.Token, request.Method.GetMethodId(), new CodedInputStream(request.Data));
 }