コード例 #1
0
ファイル: MCommittedInfo.cs プロジェクト: danfma/db4o-net
 public _IRunnable_111(MCommittedInfo _enclosing, CallbackObjectInfoCollections callbackInfos
                       , int dispatcherID)
 {
     this._enclosing    = _enclosing;
     this.callbackInfos = callbackInfos;
     this.dispatcherID  = dispatcherID;
 }
コード例 #2
0
ファイル: MCommit.cs プロジェクト: dan-laskowski/OBD_Projekt
 private void AddCommittedInfoMsg(CallbackObjectInfoCollections committedInfo, LocalTransaction
                                  serverTransaction)
 {
     lock (ContainerLock())
     {
         Msg.CommittedInfo.SetTransaction(serverTransaction);
         MCommittedInfo message = Msg.CommittedInfo.Encode(committedInfo, ServerMessageDispatcher
                                                               ().DispatcherID());
         message.SetMessageDispatcher(ServerMessageDispatcher());
         ServerMessageDispatcher().Server().AddCommittedInfoMsg(message);
     }
 }
コード例 #3
0
ファイル: MCommittedInfo.cs プロジェクト: danfma/db4o-net
        public virtual MCommittedInfo Encode(CallbackObjectInfoCollections callbackInfo,
                                             int dispatcherID)
        {
            ByteArrayOutputStream os = new ByteArrayOutputStream();

            PrimitiveCodec.WriteInt(os, dispatcherID);
            byte[]         bytes         = EncodeInfo(callbackInfo, os);
            MCommittedInfo committedInfo = (MCommittedInfo)GetWriterForLength(Transaction(),
                                                                              bytes.Length + Const4.IntLength);

            committedInfo._payLoad.Append(bytes);
            return(committedInfo);
        }
コード例 #4
0
ファイル: MCommittedInfo.cs プロジェクト: masroore/db4o
 public _IRunnable_111(MCommittedInfo _enclosing, CallbackObjectInfoCollections callbackInfos
     , int dispatcherID)
 {
     this._enclosing = _enclosing;
     this.callbackInfos = callbackInfos;
     this.dispatcherID = dispatcherID;
 }
コード例 #5
0
ファイル: MCommittedInfo.cs プロジェクト: masroore/db4o
 internal InternalIDEncoder(MCommittedInfo _enclosing)
 {
     this._enclosing = _enclosing;
 }
コード例 #6
0
ファイル: MCommittedInfo.cs プロジェクト: masroore/db4o
 internal FrozenObjectInfoEncoder(MCommittedInfo _enclosing)
 {
     this._enclosing = _enclosing;
 }
コード例 #7
0
		public virtual void AddCommittedInfoMsg(MCommittedInfo message)
		{
			_committedInfosQueue.Add(message);
		}
コード例 #8
0
ファイル: MCommittedInfo.cs プロジェクト: erdincay/db4o
		private IObjectInfoCollection DecodeObjectInfoCollection(ByteArrayInputStream @is
			, MCommittedInfo.IObjectInfoEncoder encoder)
		{
			Collection4 collection = new Collection4();
			while (true)
			{
				IObjectInfo info = encoder.Decode(@is);
				if (null == info)
				{
					break;
				}
				collection.Add(info);
			}
			return new ObjectInfoCollectionImpl(collection);
		}
コード例 #9
0
ファイル: MCommittedInfo.cs プロジェクト: erdincay/db4o
		private void EncodeObjectInfoCollection(ByteArrayOutputStream os, IObjectInfoCollection
			 collection, MCommittedInfo.IObjectInfoEncoder encoder)
		{
			IEnumerator iter = collection.GetEnumerator();
			while (iter.MoveNext())
			{
				IObjectInfo obj = (IObjectInfo)iter.Current;
				encoder.Encode(os, obj);
			}
			PrimitiveCodec.WriteLong(os, -1);
		}
コード例 #10
0
ファイル: MCommittedInfo.cs プロジェクト: danfma/db4o-net
 internal FrozenObjectInfoEncoder(MCommittedInfo _enclosing)
 {
     this._enclosing = _enclosing;
 }
コード例 #11
0
ファイル: MCommittedInfo.cs プロジェクト: danfma/db4o-net
 internal InternalIDEncoder(MCommittedInfo _enclosing)
 {
     this._enclosing = _enclosing;
 }