Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    EventReceiverBase<T> Class

    Namespace: Stride.Engine.Events
    Assembly: Stride.Engine.dll

    Base type for EventReceiver.

    System.Object → EventReceiverBase → EventReceiverBase<T>
    Derived from EventReceiverBase<T>: EventReceiver EventReceiver<T>

    public class EventReceiverBase<T> : EventReceiverBase, IDisposable
    Type Parameters
    Name Description
    T

    The type of data the EventKey will send

    Name Description
    Properties
    Count

    Returns the count of currently buffered events

    Key
    Methods
    Dispose()
    Finalize()
    GetAwaiter()
    InternalReceiveAsync()
    InternalTryReceive(out T)
    InternalTryReceiveAll(ICollection<T>)
    Reset()

    Clears all currently buffered events.

    | Improve this Doc View Source

    Properties


    Count

    Returns the count of currently buffered events

    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Key

    public EventKeyBase<T> Key { get; }
    Property Value
    Type Description
    EventKeyBase<T>
    | Improve this Doc View Source

    Methods


    Dispose()

    public void Dispose()

    Finalize()

    protected void Finalize()

    GetAwaiter()

    public EventReceiverAwaiter<T> GetAwaiter()
    Returns
    Type Description
    EventReceiverAwaiter<T>

    InternalReceiveAsync()

    protected async Task<T> InternalReceiveAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<T>

    InternalTryReceive(out T)

    protected bool InternalTryReceive(out T data)
    Parameters
    Type Name Description
    T data
    Returns
    Type Description
    System.Boolean

    InternalTryReceiveAll(ICollection<T>)

    protected int InternalTryReceiveAll(ICollection<T> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.ICollection<T> collection
    Returns
    Type Description
    System.Int32

    Reset()

    Clears all currently buffered events.

    public void Reset()

    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