示例#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.Silverlight.WcfResponse ConvertResponse(Csla.Server.Hosts.Silverlight.WcfResponse response)
 {
     Csla.Server.Hosts.Silverlight.WcfResponse returnValue = new Csla.Server.Hosts.Silverlight.WcfResponse();
     returnValue.GlobalContext = CompressionUtility.Compress(response.GlobalContext);
     returnValue.ObjectData    = CompressionUtility.Compress(response.ObjectData);
     returnValue.ErrorData     = response.ErrorData;
     return(returnValue);
 }
示例#3
0
 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);
 }
示例#4
0
 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);
 }
示例#5
0
 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);
 }