Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AssetSourceTracker Class

    Namespace: Stride.Core.Assets.Tracking
    Assembly: Stride.Core.Assets.dll
    System.Object → AssetSourceTracker
    Derived from AssetSourceTracker:

    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 false

    IsTrackingPaused

    Gets or sets a value indicating whether this instance is processing tracking events or it is paused. Default is false.

    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)
    | Improve this Doc View Source

    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

    true if 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
    Type Description
    System.Boolean

    true if 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
    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.

    | Improve this Doc View Source

    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

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation