Beispiel #1
0
    public override void dispose()
    {
        base.dispose();

        _iData  = null;
        _config = null;
    }
Beispiel #2
0
    public override void init()
    {
        base.init();

        _iData  = (PuppetIdentityData)_data.identity;
        _config = PuppetConfig.get(_iData.id);
    }
Beispiel #3
0
    /// <summary>
    /// 复制(潜拷贝)
    /// </summary>
    protected override void toShadowCopy(BaseData data)
    {
        base.toShadowCopy(data);

        if (!(data is PuppetIdentityData))
        {
            return;
        }

        PuppetIdentityData mData = (PuppetIdentityData)data;

        this.masterInstanceID = mData.masterInstanceID;
        this.lastTime         = mData.lastTime;
    }
Beispiel #4
0
    /// <summary>
    /// 是否数据一致
    /// </summary>
    protected override bool toDataEquals(BaseData data)
    {
        if (!base.toDataEquals(data))
        {
            return(false);
        }

        PuppetIdentityData mData = (PuppetIdentityData)data;

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

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

        return(true);
    }