Esempio n. 1
0
        protected override WcfResponse ConvertResponse(WcfResponse response)
        {
            WcfResponse returnValue = new WcfResponse();

            returnValue.GlobalContext = CompressionUtility.Decompress(response.GlobalContext);
            returnValue.ObjectData    = CompressionUtility.Decompress(response.ObjectData);
            returnValue.Error         = response.Error;
            return(returnValue);
        }
Esempio n. 2
0
        protected override UpdateRequest ConvertRequest(UpdateRequest request)
        {
            UpdateRequest returnValue = new UpdateRequest();

            returnValue.ClientContext   = CompressionUtility.Decompress(request.ClientContext);
            returnValue.GlobalContext   = CompressionUtility.Decompress(request.GlobalContext);
            returnValue.ObjectData      = CompressionUtility.Decompress(request.ObjectData);
            returnValue.Principal       = CompressionUtility.Decompress(request.Principal);
            returnValue.ClientCulture   = request.ClientCulture;
            returnValue.ClientUICulture = request.ClientUICulture;
            return(returnValue);
        }
Esempio n. 3
0
        protected override CriteriaRequest ConvertRequest(CriteriaRequest request)
        {
            CriteriaRequest returnValue = new CriteriaRequest();

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