Search Results for

    Show / Hide Table of Contents

    Class AsyncEvent

    A container for event listeners, fired asynchronously.

    Inheritance
    object
    EventBase<Func<Task>>
    AsyncEvent
    Inherited Members
    EventBase<Func<Task>>.Listeners
    EventBase<Func<Task>>.AddListener(Func<Task>)
    EventBase<Func<Task>>.RemoveListener(Func<Task>)
    EventBase<Func<Task>>.Clear()
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Utils
    Assembly: LemonEdge.Utils.dll
    Syntax
    public class AsyncEvent : EventBase<Func<Task>>

    Constructors

    AsyncEvent()

    Declaration
    public AsyncEvent()

    Methods

    AddListener(Action)

    Adds a listener to the given event.

    Declaration
    public bool AddListener(Action action)
    Parameters
    Type Name Description
    Action action

    The task to execute when the event occurs.

    Returns
    Type Description
    bool

    OnChanged()

    Notifies all the listeners that the event has occurred.

    Declaration
    public Task OnChanged()
    Returns
    Type Description
    Task

    A task indicating when all listeners have finished processing the notification

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.