Search Results for

    Show / Hide Table of Contents

    Class TickGenerator

    Tick generator which provides ticking with the specified interval.
    Inheritance
    object
    TickGenerator
    HighPrecisionTickGenerator
    RegularPrecisionTickGenerator
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Multimedia
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public abstract class TickGenerator : IDisposable

    Properties

    IsRunning

    Gets a value indicating whether the current tick generator is currently running or not.
    Declaration
    protected bool IsRunning { get; set; }
    Property Value
    Type Description
    bool

    Methods

    Dispose()

    Releases all resources used by the current tick generator.
    Declaration
    public virtual void Dispose()

    Dispose(bool)

    Releases all resources used by the current tick generator.
    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    GenerateTick()

    Generates a tick firing the TickGenerated event.
    Declaration
    protected void GenerateTick()

    Start(TimeSpan)

    Starts a tick generator.
    Declaration
    protected abstract void Start(TimeSpan interval)
    Parameters
    Type Name Description
    TimeSpan interval Interval between ticks.

    Stop()

    Stops a tick generator.
    Declaration
    protected abstract void Stop()

    Events

    TickGenerated

    Occurs on tick generator's tick.
    Declaration
    public event EventHandler TickGenerated
    Event Type
    Type Description
    EventHandler

    Implements

    IDisposable
    In this article
    Back to top 2025 / Generated by DocFX