Class AssetSourceTracker
public sealed class AssetSourceTracker : IDisposable
- Inheritance
-
objectAssetSourceTracker
- Implements
- Extension Methods
Properties
EnableTracking
Gets or sets a value indicating whether this instance should track file disk changed events. Default is false
public bool EnableTracking { get; set; }
Property Value
- bool
trueif this instance should track file disk changed events; otherwise,false.
IsTrackingPaused
Gets or sets a value indicating whether this instance is processing tracking events or it is paused. Default is false.
public bool IsTrackingPaused { get; set; }
Property Value
- bool
trueif this instance is tracking paused; otherwise,false.
SourceFileChanged
Gets a source dataflow block in which notifications that a source file has changed are pushed.
public BroadcastBlock<IReadOnlyList<SourceFileChangedData>> SourceFileChanged { get; }
Property Value
TrackingSleepTime
Gets or sets the number of ms the file tracker should sleep before checking changes. Default is 1000ms.
public int TrackingSleepTime { get; set; }
Property Value
- int
The tracking sleep time.
Methods
BeginSavingSession()
public void BeginSavingSession()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
EndSavingSession()
public void EndSavingSession()
GetCurrentHash(UFile)
public ObjectId GetCurrentHash(UFile file)
Parameters
fileUFile
Returns
GetSourceFiles()
Gets the full paths of the source files of the assets that this instance tracks.
public IReadOnlyList<string> GetSourceFiles()