Пример #1
0
        internal static ResponseParameters DecodeResponse(IClientMessage clientMessage)
        {
            var parameters   = new ResponseParameters();
            var responseSize = clientMessage.GetInt();
            var response     = new List <DistributedObjectInfo>(responseSize);

            for (var responseIndex = 0; responseIndex < responseSize; responseIndex++)
            {
                var responseItem = DistributedObjectInfoCodec.Decode(clientMessage);
                response.Add(responseItem);
            }
            parameters.response = response;
            return(parameters);
        }
Пример #2
0
        public static ResponseParameters DecodeResponse(IClientMessage clientMessage)
        {
            var parameters = new ResponseParameters();
            IList <DistributedObjectInfo> infoCollection = null;
            var infoCollection_size = clientMessage.GetInt();

            infoCollection = new List <DistributedObjectInfo>();
            for (var infoCollection_index = 0; infoCollection_index < infoCollection_size; infoCollection_index++)
            {
                DistributedObjectInfo infoCollection_item;
                infoCollection_item = DistributedObjectInfoCodec.Decode(clientMessage);
                infoCollection.Add(infoCollection_item);
            }
            parameters.infoCollection = infoCollection;
            return(parameters);
        }