internal void StartSyncHandler(IEntityAdapter conn, object msg) { if (this.CurrentState != ObserverProxy.State.Normal) { Log <ObserverProxy> .Logger.FatalFormat("StartSync received on Proxy state {0}", this.CurrentState); } this.CurrentState = ObserverProxy.State.Synchronizing; }
internal void SynchronizedHandler(IEntityAdapter conn, object msg) { if (this.CurrentState != ObserverProxy.State.Synchronizing) { Log <ObserverProxy> .Logger.FatalFormat("Synchronized received on Proxy state {0}", this.CurrentState); } this.Dirty = false; this.CurrentState = ObserverProxy.State.Normal; this.Connection.SendMessage(new ResetDirty(this.ID)); }