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
    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

    Constructors

    | Edit this page View Source

    Delayer()

    Declaration
    public Delayer()

    Methods

    | Edit this page View Source

    ExecuteDelayed(Action, int, int)

    Schedules the specified action to be executed after a minimum delay, ensuring that at least delayBetweenCalls milliseconds have elapsed since the previous execution. If multiple calls are made in quick succession, only the most recent is executed.

    Declaration
    public void ExecuteDelayed(Action action, int delayBetweenCalls, int minimumDelay)
    Parameters
    Type Name Description
    Action action

    The action to execute.

    int delayBetweenCalls

    The minimum number of milliseconds between two executions.

    int minimumDelay

    The minimum number of milliseconds to wait after calling this method before executing action. This is useful when starting continuous changes, like dragging the map.

    | Edit this page View Source

    ExecuteDelayed(Func<Task>, int, int)

    Schedules the specified asynchronous function to be executed after a minimum delay, ensuring that at least delayBetweenCalls milliseconds have elapsed since the previous execution. If multiple calls are made in quick succession, only the most recent is executed.

    Declaration
    public void ExecuteDelayed(Func<Task> func, int delayBetweenCalls, int minimumDelay)
    Parameters
    Type Name Description
    Func<Task> func

    The asynchronous function to execute.

    int delayBetweenCalls

    The minimum number of milliseconds between two executions.

    int minimumDelay

    The minimum number of milliseconds to wait after calling this method before executing func. . This is useful when starting continuous changes, like dragging the map.

    Extension Methods

    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX