Struct BusSubscription
- Namespace
- LiteEntitySystem.Extensions
- Assembly
- LiteEntitySystem.dll
Represents a subscription to a message bus channel that can be disposed to unsubscribe.
public readonly struct BusSubscription : IDisposable
- Implements
Constructors
BusSubscription(Action)
public BusSubscription(Action dispose)
Parameters
disposeAction
Methods
Dispose()
Disposes the subscription, unsubscribing the handler from the message bus.
public void Dispose()