コード例 #1
0
 protected override Csla.WcfPortal.WcfResponse ConvertResponse(Csla.WcfPortal.WcfResponse response)
 {
     Csla.WcfPortal.WcfResponse returnValue = new Csla.WcfPortal.WcfResponse();
     returnValue.GlobalContext = CompressionUtility.Decompress(response.GlobalContext);
     returnValue.ObjectData    = CompressionUtility.Decompress(response.ObjectData);
     returnValue.ErrorData     = response.ErrorData;
     return(returnValue);
 }
コード例 #2
0
        protected override Csla.Server.Hosts.Mobile.UpdateRequest ConvertRequest(
            Csla.Server.Hosts.Mobile.UpdateRequest request)
        {
            var returnValue = new Csla.Server.Hosts.Mobile.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);
            return(returnValue);
        }
コード例 #3
0
        protected override Csla.Server.Hosts.Mobile.CriteriaRequest ConvertRequest(
            Csla.Server.Hosts.Mobile.CriteriaRequest request)
        {
            var returnValue = new Csla.Server.Hosts.Mobile.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;
            return(returnValue);
        }