protected override Csla.WcfPortal.UpdateRequest ConvertRequest(Csla.WcfPortal.UpdateRequest request) { Csla.WcfPortal.UpdateRequest returnValue = new Csla.WcfPortal.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); return(returnValue); }
protected override Csla.Server.Hosts.Mobile.WcfResponse ConvertResponse( Csla.Server.Hosts.Mobile.WcfResponse response) { var returnValue = new Csla.Server.Hosts.Mobile.WcfResponse(); returnValue.GlobalContext = CompressionUtility.Compress(response.GlobalContext); returnValue.ObjectData = CompressionUtility.Compress(response.ObjectData); returnValue.ErrorData = response.ErrorData; return(returnValue); }
protected override Csla.WcfPortal.CriteriaRequest ConvertRequest(Csla.WcfPortal.CriteriaRequest request) { Csla.WcfPortal.CriteriaRequest returnValue = new Csla.WcfPortal.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; return(returnValue); }