Search Results for

    Show / Hide Table of Contents

    Class Delayer

    Makes sure a method is always called 'MillisecondsToDelay' after the previous call.

    Inheritance
    object
    Delayer
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Fetcher
    Assembly: Mapsui.dll
    Syntax
    public class Delayer : IDisposable

    Constructors

    | Edit this page View Source

    Delayer()

    Declaration
    public Delayer()

    Properties

    | Edit this page View Source

    MillisecondsToWait

    The delay between two calls.

    Declaration
    public int MillisecondsToWait { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    StartWithDelay

    Declaration
    public bool StartWithDelay { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Dispose()

    Declaration
    public void Dispose()
    | Edit this page View Source

    Dispose(bool)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    | Edit this page View Source

    ExecuteDelayed(Action)

    Executes the method passed as argument with a possible delay. After a previous call the next call is delayed until 'MillisecondsToWait' has passed. When ExecuteRequest is called before the previous delayed action was executed the previous one will be cancelled.

    Declaration
    public void ExecuteDelayed(Action action)
    Parameters
    Type Name Description
    Action action

    The action to be executed after the possible delay

    Remarks

    When the previous call was more than 'MillisecondsToWait' ago there will be no delay.

    Implements

    IDisposable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX