Source/NFX/DataAccess/Distributed/Parcel.cs
/// <summary>
/// Opens parcel for modification. Parcel must be in the Sealed state for this call and must not be ReadOnly.
/// Once open for modification, a parcel can not be "UnOpened", only Seal()-ed. This is because there is no way to track
/// whether some part of payload object has changed by the calling code. Use DeepClone() before calling Open to retain a copy of Sealed parcel
/// to revert to the cloned instance instead
/// </summary>
Opens parcel for modification. Parcel must be in the Sealed state for this call and must not be ReadOnly.
Once open for modification, a parcel can not be "UnOpened", only Seal()-ed. This is because there is no way to track
whether some part of payload object has changed by the calling code. Use DeepClone() before calling Open to retain a copy of Sealed parcel
to revert to the cloned instance instead
Opens parcel for modification . Parcel must be in the Sealed state for this call and must not be ReadOnly . Once open for modification a parcel can not be " UnOpened " only Seal () - ed . This is because there is no way to track whether some part of payload object has changed by the calling code . Use DeepClone () before calling Open to retain a copy of Sealed parcel to revert to the cloned instance instead
public void Open()
            {
                if (m_State!=ParcelState.Sealed)
                 throw new DistributedDataAccessException(StringConsts.DISTRIBUTED_DATA_PARCEL_INVALID_OPERATION_ERROR.Args("Open", GetType().FullName, m_State) );
                if (ReadOnly)
                 throw new DistributedDataAccessException(StringConsts.DISTRIBUTED_DATA_PARCEL_INVALID_OPERATION_ERROR.Args("Open", GetType().FullName+"(ReadOnly)", m_State) );
                if (ReplicationVersionInfo!=null && ReplicationVersionInfo.VersionDeleted)
                 throw new DistributedDataAccessException(StringConsts.DISTRIBUTED_DATA_PARCEL_INVALID_OPERATION_ERROR.Args("Open", GetType().FullName+"(VersionDeleted)", m_State) );
                DoOpen();
                m_State = ParcelState.Modifying;
            }
public void Open ( ) { if ( m_State != ParcelState . Sealed ) throw new DistributedDataAccessException ( StringConsts . DISTRIBUTED_DATA_PARCEL_INVALID_OPERATION_ERROR . Args ( " " , GetType ( ) . FullName , m_State ) ) ; if ( ReadOnly ) throw new DistributedDataAccessException ( StringConsts . DISTRIBUTED_DATA_PARCEL_INVALID_OPERATION_ERROR . Args ( " " , GetType ( ) . FullName + " " , m_State ) ) ; if ( ReplicationVersionInfo != null && ReplicationVersionInfo . VersionDeleted ) throw new DistributedDataAccessException ( StringConsts . DISTRIBUTED_DATA_PARCEL_INVALID_OPERATION_ERROR . Args ( " " , GetType ( ) . FullName + " " , m_State ) ) ; DoOpen ( ) ; m_State = ParcelState . Modifying ; }
Opens parcel for modification.
Opens parcel for modification .