public void AutomaticallyRecover(AutorecoveringConnection conn, IConnection connDelegate) { m_connection = conn; RecoveryAwareModel defunctModel = m_delegate; m_delegate = conn.CreateNonRecoveringModel(); m_delegate.InheritOffsetFrom(defunctModel); RecoverModelShutdownHandlers(); RecoverState(); RecoverBasicReturnHandlers(); RecoverBasicAckHandlers(); RecoverBasicNackHandlers(); RecoverCallbackExceptionHandlers(); RunRecoveryEventHandlers(); }