示例#1
0
 public void Run()
 {
     if (_enclosing.Container().IsClosed())
     {
         return;
     }
     _enclosing.Container().Callbacks().CommitOnCompleted(_enclosing.Transaction
                                                              (), callbackInfos, dispatcherID == ((ClientObjectContainer)_enclosing.Container
                                                                                                      ()).ServerSideID());
 }
示例#2
0
            public IObjectInfo Decode(ByteArrayInputStream @is)
            {
                var id = PrimitiveCodec.ReadLong(@is);

                if (id == -1)
                {
                    return(null);
                }
                var          sourceDatabaseId = PrimitiveCodec.ReadLong(@is);
                Db4oDatabase sourceDatabase   = null;

                if (sourceDatabaseId > 0)
                {
                    sourceDatabase = (Db4oDatabase)_enclosing.Container().GetByID(_enclosing
                                                                                  .Transaction(), sourceDatabaseId);
                }
                var uuidLongPart = PrimitiveCodec.ReadLong(@is);
                var version      = PrimitiveCodec.ReadLong(@is);

                return(new FrozenObjectInfo(null, id, sourceDatabase, uuidLongPart, version));
            }