Example #1
0
            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());
            }
Example #2
0
 public void Run()
 {
     if (_enclosing.Container().IsClosed())
     {
         return;
     }
     _enclosing.Container().Callbacks().CommitOnCompleted(_enclosing.Transaction
                                                              (), callbackInfos, dispatcherID == ((ClientObjectContainer)_enclosing.Container
                                                                                                      ()).ServerSideID());
 }
Example #3
0
            public IObjectInfo Decode(ByteArrayInputStream @is)
            {
                var id = PrimitiveCodec.ReadLong(@is);

                if (id == -1)
                {
                    return(null);
                }
                return(new LazyObjectReference(_enclosing.Transaction(), (int)id));
            }