Esempio n. 1
0
 /// <summary>Writes a remote exception to the stream.</summary>
 /// <param name="v">The remote exception to write.</param>
 public void WriteException(RemoteException v)
 {
     Debug.Assert(InEncapsulation && _current.InstanceType == InstanceType.None);
     Debug.Assert(_format == FormatType.Sliced);
     _current.InstanceType = InstanceType.Exception;
     v.Write(this);
     _current = default;
 }
Esempio n. 2
0
        /// <summary>Writes a remote exception to the stream.</summary>
        /// <param name="v">The remote exception to write.</param>
        public void WriteException(RemoteException v)
        {
            Debug.Assert(InEncapsulation && _current.InstanceType == InstanceType.None);
            Debug.Assert(_format == FormatType.Sliced);
            Debug.Assert(!(v is ObjectNotExistException));    // temporary
            Debug.Assert(!(v is OperationNotExistException)); // temporary
            Debug.Assert(!(v is UnhandledException));         // temporary

            _current.InstanceType = InstanceType.Exception;
            v.Write(this);
            _current = default;
        }
Esempio n. 3
0
        /// <summary>Writes a remote exception to the stream.</summary>
        /// <param name="v">The remote exception to write.</param>
        public void WriteException(RemoteException v)
        {
            Debug.Assert(InEncapsulation && _current == null);
            Debug.Assert(_format == FormatType.Sliced);
            Debug.Assert(!(v is ObjectNotExistException));    // temporary
            Debug.Assert(!(v is OperationNotExistException)); // temporary
            Debug.Assert(!(v is UnhandledException));         // temporary
            Push(InstanceType.Exception);

            v.Write(this);
            Pop(null);
        }