Esempio n. 1
0
 protected override void EnsureDecoderAtEof()
 {
     if (!(decoder.CurrentState == ServerSessionDecoder.State.End || decoder.CurrentState == ServerSessionDecoder.State.EnvelopeEnd))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(decoder.CreatePrematureEOFException());
     }
 }
 protected override Exception CreatePrematureEOFException()
 {
     return(decoder.CreatePrematureEOFException());
 }