示例#1
0
    /// <summary>
    /// 复制(潜拷贝)
    /// </summary>
    protected override void toShadowCopy(BaseData data)
    {
        if (!(data is WorkCompleteData))
        {
            return;
        }

        WorkCompleteData mData = (WorkCompleteData)data;

        this.workInstanceID = mData.workInstanceID;
        this.senderIndex    = mData.senderIndex;
    }
示例#2
0
    /// <summary>
    /// 是否数据一致
    /// </summary>
    protected override bool toDataEquals(BaseData data)
    {
        WorkCompleteData mData = (WorkCompleteData)data;

        if (this.workInstanceID != mData.workInstanceID)
        {
            return(false);
        }

        if (this.senderIndex != mData.senderIndex)
        {
            return(false);
        }

        return(true);
    }