Exemple #1
0
        protected override UpdateRequest ConvertRequest(UpdateRequest request)
        {
            UpdateRequest returnValue = new UpdateRequest();

            returnValue.ClientContext   = CompressionUtility.Compress(request.ClientContext);
            returnValue.GlobalContext   = CompressionUtility.Compress(request.GlobalContext);
            returnValue.ObjectData      = CompressionUtility.Compress(request.ObjectData);
            returnValue.Principal       = CompressionUtility.Compress(request.Principal);
            returnValue.ClientCulture   = request.ClientCulture;
            returnValue.ClientUICulture = request.ClientUICulture;
            return(returnValue);
        }
Exemple #2
0
        protected override CriteriaRequest ConvertRequest(CriteriaRequest request)
        {
            CriteriaRequest returnValue = new CriteriaRequest();

            returnValue.ClientContext = CompressionUtility.Compress(request.ClientContext);
            returnValue.GlobalContext = CompressionUtility.Compress(request.GlobalContext);
            if (request.CriteriaData != null)
            {
                returnValue.CriteriaData = CompressionUtility.Compress(request.CriteriaData);
            }
            returnValue.Principal       = CompressionUtility.Compress(request.Principal);
            returnValue.TypeName        = request.TypeName;
            returnValue.ClientCulture   = request.ClientCulture;
            returnValue.ClientUICulture = request.ClientUICulture;
            return(returnValue);
        }