コード例 #1
0
ファイル: CompressedProxy.cs プロジェクト: RobRobertsCE/MVVM
        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);
        }
コード例 #2
0
ファイル: CompressedProxy.cs プロジェクト: RobRobertsCE/MVVM
        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);
        }