Exemple #1
0
 protected virtual void SafeReadRecord()
 {
     //IL_000d: Unknown result type (might be due to invalid IL or missing references)
     try
     {
         if (!mRecordStream.ReadRecord())
         {
             throw new EndOfStreamException();
         }
     }
     catch (TlsFatalAlert tlsFatalAlert)
     {
         if (!mClosed)
         {
             FailWithError(2, tlsFatalAlert.AlertDescription, "Failed to read record", (global::System.Exception)(object) tlsFatalAlert);
         }
         throw tlsFatalAlert;
     }
     catch (global::System.Exception ex)
     {
         if (!mClosed)
         {
             FailWithError(2, 80, "Failed to read record", ex);
         }
         throw ex;
     }
 }
Exemple #2
0
 protected virtual void SafeReadRecord()
 {
     try
     {
         if (!mRecordStream.ReadRecord())
         {
             throw new EndOfStreamException();
         }
     }
     catch (TlsFatalAlert tlsFatalAlert)
     {
         if (!mClosed)
         {
             FailWithError(2, tlsFatalAlert.AlertDescription, "Failed to read record", tlsFatalAlert);
         }
         throw tlsFatalAlert;
         IL_003e :;
     }
     catch (Exception ex)
     {
         if (!mClosed)
         {
             FailWithError(2, 80, "Failed to read record", ex);
         }
         throw ex;
         IL_0062 :;
     }
 }