public void Encode(ByteArrayOutputStream os, IObjectInfo info) { PrimitiveCodec.WriteLong(os, info.GetInternalID()); var sourceDatabaseId = ((FrozenObjectInfo)info).SourceDatabaseId(_enclosing .Transaction()); PrimitiveCodec.WriteLong(os, sourceDatabaseId); PrimitiveCodec.WriteLong(os, ((FrozenObjectInfo)info).UuidLongPart()); PrimitiveCodec.WriteLong(os, info.GetCommitTimestamp()); }
public void Run() { if (_enclosing.Container().IsClosed()) { return; } _enclosing.Container().Callbacks().CommitOnCompleted(_enclosing.Transaction (), callbackInfos, dispatcherID == ((ClientObjectContainer)_enclosing.Container ()).ServerSideID()); }
public IObjectInfo Decode(ByteArrayInputStream @is) { var id = PrimitiveCodec.ReadLong(@is); if (id == -1) { return(null); } return(new LazyObjectReference(_enclosing.Transaction(), (int)id)); }