Exemple #1
0
 internal void WriteSlicedData(SlicedData slicedData)
 {
     Debug.Assert(_current != null);
     // We only remarshal preserved slices if we are using the sliced format. Otherwise, we ignore the preserved
     // slices, which essentially "slices" the instance into the most-derived type known by the sender.
     if (_format != FormatType.Sliced)
     {
         throw new NotSupportedException($"cannot write sliced data into payload using {_format} format");
     }
     if (Encoding != slicedData.Encoding)
     {
         throw new NotSupportedException(@$ "cannot write sliced data encoded with encoding {slicedData.Encoding
             } into payload encoded with encoding {Encoding}");
     }
Exemple #2
0
 internal RemoteException(SlicedData slicedData)
 {
     IceSlicedData      = slicedData;
     ConvertToUnhandled = true;
 }