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); }
protected override Csla.Server.Hosts.Silverlight.UpdateRequest ConvertRequest(Csla.Server.Hosts.Silverlight.UpdateRequest request) { Csla.Server.Hosts.Silverlight.UpdateRequest returnValue = new Csla.Server.Hosts.Silverlight.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); }
protected override Csla.Server.Hosts.Silverlight.CriteriaRequest ConvertRequest(Csla.Server.Hosts.Silverlight.CriteriaRequest request) { Csla.Server.Hosts.Silverlight.CriteriaRequest returnValue = new Csla.Server.Hosts.Silverlight.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); }