Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
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);
        }