AssetSourceTracker Class
Namespace: Stride.Core.Assets.TrackingAssembly: Stride.Core.Assets.dll
public sealed class AssetSourceTracker : IDisposable
Name | Description | |
---|---|---|
Properties | ||
EnableTracking | Gets or sets a value indicating whether this instance should track file disk changed events. Default is |
|
IsTrackingPaused | Gets or sets a value indicating whether this instance is processing tracking events or it is paused. Default is |
|
SourceFileChanged | Gets a source dataflow block in which notifications that a source file has changed are pushed. |
|
TrackingSleepTime | Gets or sets the number of ms the file tracker should sleep before checking changes. Default is 1000ms. |
|
Methods | ||
BeginSavingSession() | ||
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
|
EndSavingSession() | ||
GetCurrentHash(UFile) |
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
Type | Description |
---|---|
System.Boolean |
|
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
Type | Description |
---|---|
System.Boolean |
|
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
Type | Description |
---|---|
System.Threading.Tasks.Dataflow.BroadcastBlock<System.Collections.Generic.IReadOnlyList<SourceFileChangedData>> |
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
Type | Description |
---|---|
System.Int32 | 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
Type | Name | Description |
---|---|---|
Stride.Core.IO.UFile | file |
Returns
Type | Description |
---|---|
ObjectId |