Class SignalBase<THandler>¶
Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll
The handlers of a signal. Emitting calls a snapshot of them, so a handler may connect or disconnect (itself too) while it runs. An exception from a handler is logged and the others still run: the emitter never sees it.
public abstract class SignalBase<THandler> : SignalBase where THandler : Delegate
Type Parameters¶
THandler
Inheritance¶
object ← SignalBase ← SignalBase<THandler>
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
Count¶
public int Count { get; }
Property Value¶
Entries¶
protected ReadOnlySpan<SignalBase<THandler>.Entry> Entries { get; }
Property Value¶
ReadOnlySpan<SignalBase<THandler>.Entry>
Methods¶
Connect(THandler)¶
public Connection Connect(THandler handler)
Parameters¶
handler THandler
Returns¶
Failed(Exception)¶
protected static void Failed(Exception exception)
Parameters¶
exception Exception