public void TrackedObjectStillAliveTest() { IObjectTracker objectTracker = ObjectTracker.Instance; objectTracker.ForceTrack = true; objectTracker.TrackObject(trackObj); Assert.AreEqual(1, objectTracker.GetLiveTrackedObjects().Count()); }
internal static void TrackObject(List <Lazy <IObjectTracker> > objectTrackers, string bucketName, object value) { foreach (Lazy <IObjectTracker> trackerExport in objectTrackers) { IObjectTracker objectTracker = trackerExport.Value; if (objectTracker != null) { objectTracker.TrackObject(value, bucketName); } } }
internal ObjectBase( ObjectPath objectPath, IObjectTracker objectTracker, IPropertyNameToIdMap propertyNameToIdMap, IPropertyContextBasedPropertyReader propertyContextBasedPropertyReader) { this.objectPath = objectPath; this.objectTracker = objectTracker; this.propertyNameToIdMap = propertyNameToIdMap; this.propertyContextBasedPropertyReader = propertyContextBasedPropertyReader; }
public void TrackedObjectDeadAfterNoRefTest() { IObjectTracker objectTracker = ObjectTracker.Instance; objectTracker.ForceTrack = true; objectTracker.TrackObject(trackObj); trackObj = null; Assert.AreEqual(0, objectTracker.GetLiveTrackedObjects().Count()); }
internal Message( ObjectPath objectPath, IObjectTracker objectTracker, IRecipientTracker recipientTracker, INodeEntryFinder nodeEntryFinder, IRowIndexReader rowIndexReader, IPropertyNameToIdMap propertyNameToIdMap, IPropertyContextBasedPropertyReader propertyContextBasedPropertyReader, ITableContextBasedPropertyReader tableContextBasedPropertyReader) : base(objectPath, objectTracker, propertyNameToIdMap, propertyContextBasedPropertyReader) { this.objectPath = objectPath; this.objectTracker = objectTracker; this.recipientTracker = recipientTracker; this.nodeEntryFinder = nodeEntryFinder; this.rowIndexReader = rowIndexReader; this.propertyNameToIdMap = propertyNameToIdMap; this.propertyContextBasedPropertyReader = propertyContextBasedPropertyReader; this.tableContextBasedPropertyReader = tableContextBasedPropertyReader; }
internal Folder( ObjectPath objectPath, IObjectTracker objectTracker, IRecipientTracker recipientTracker, IEncoder <string> stringEncoder, IPropertyNameToIdMap propertyNameToIdMap, IPropertyContextBasedPropertyReader propertyContextBasedPropertyReader, INodeEntryFinder nodeEntryFinder, IRowIndexReader rowIndexReader, ITableContextBasedPropertyReader tableContextBasedPropertyReader, INIDAllocator nodeIdAllocator) : base(objectPath, objectTracker, propertyNameToIdMap, propertyContextBasedPropertyReader) { this.objectPath = objectPath; this.objectTracker = objectTracker; this.recipientTracker = recipientTracker; this.stringEncoder = stringEncoder; this.nodeEntryFinder = nodeEntryFinder; this.rowIndexReader = rowIndexReader; this.tableContextBasedPropertyReader = tableContextBasedPropertyReader; this.nodeIdAllocator = nodeIdAllocator; this.propertyNameToIdMap = propertyNameToIdMap; this.propertyContextBasedPropertyReader = propertyContextBasedPropertyReader; }
private PSTFile( IObjectTracker objectTracker, IRecipientTracker recipientTracker, IEncoder <string> stringEncoder, INodeEntryFinder nodeEntryFinder, IRowIndexReader rowIndexReader, IPropertyNameToIdMap propertyNameToIdMap, IPropertyContextBasedPropertyReader propertyContextBasedPropertyReader, ITableContextBasedPropertyReader tableContextBasedPropertyReader, INIDAllocator nodeIdAllocator, IChangesApplier changesApplier) { this.objectTracker = objectTracker; this.recipientTracker = recipientTracker; this.stringEncoder = stringEncoder; this.nodeEntryFinder = nodeEntryFinder; this.rowIndexReader = rowIndexReader; this.propertyNameToIdMap = propertyNameToIdMap; this.propertyContextBasedPropertyReader = propertyContextBasedPropertyReader; this.tableContextBasedPropertyReader = tableContextBasedPropertyReader; this.nodeIdAllocator = nodeIdAllocator; this.changesApplier = changesApplier; }
private void Initialize(Tracker tracker) { switch (tracker) { case Tracker.MosseTracker: ObjectTracker = new MosseTracker(); break; case Tracker.KCFTracker: ObjectTracker = new KCFTracker(); break; case Tracker.BoostingTracker: ObjectTracker = new BoostingTracker(); break; case Tracker.CSRTTracker: ObjectTracker = new CSRTTracker(); break; case Tracker.MedianFlowTracker: ObjectTracker = new MedianFlowTracker(); break; case Tracker.TLDTracker: ObjectTracker = new TLDTracker(); break; case Tracker.MILTracker: ObjectTracker = new MILTracker(); break; default: throw new ArgumentException("Tracker not implemented"); } }
internal MessageStore( IObjectTracker objectTracker, IPropertyNameToIdMap propertyNameToIdMap, IPropertyContextBasedPropertyReader propertyContextBasedPropertyReader) : base(StorePath, objectTracker, propertyNameToIdMap, propertyContextBasedPropertyReader) { }
public void SetTracker(IObjectTracker tracker) { this.tracker = tracker; }
public void SetTracker(IObjectTracker tracker) { this.tracker = tracker; }
public void SetTracker(IObjectTracker tracker) { this.AggregateTracker = (AggregateTracker)tracker; }