An event type that can only be invoked once. Once the event is invoked, and handler that is added to it will be immediately executed. All subsequent invocations are ignored

Type Parameters

  • TEventArgs

Hierarchy

Implements

Constructors

Properties

#args?: TEventArgs

the firing args

#disposed: boolean = false
#eventHandlers: EventHandler<TEventArgs>[] = []
#fired: boolean

event has been fired

#sender?: unknown

the firing sender

Methods

  • Invokes the event

    Parameters

    • sender: unknown

      the object that is calling invoke

    • args: TEventArgs

      the arguments to send along with the event.

    Returns void

Generated using TypeDoc