protected override async ETTask Run(Session session, DBQueryBatchRequest request, DBQueryBatchResponse response, Action reply)
        {
            DBComponent dbComponent = Game.Scene.GetComponent <DBComponent>();

            response.Components = await dbComponent.GetBatch(request.CollectionName, request.IdList);

            reply();
        }
Exemplo n.º 2
0
        protected async ETVoid RunAsync(Session session, DBQueryBatchRequest message, Action <DBQueryBatchResponse> reply)
        {
            DBQueryBatchResponse response = new DBQueryBatchResponse();

            try
            {
                DBComponent dbComponent = Game.Scene.GetComponent <DBComponent>();
                response.Components = await dbComponent.GetBatch(message.CollectionName, message.IdList);

                reply(response);
            }
            catch (Exception e)
            {
                ReplyError(response, e, reply);
            }
        }