An abstract class in Root.Township, Alta.Console.
Base for a named event that websocket console users can subscribe to. Messages are queued and sent from a background task, not the main thread.
Constructors
| Member | What it is |
|---|
ConsoleEvent(string name) | Creates a ConsoleEvent from name. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private static ConsoleEvent.Processor processor | The shared background Processor that empties the queue. |
private static BlockingCollection<ConsoleEvent.QueueItem> queue | Shared queue of event messages waiting to be sent to listeners. |
Properties
| Member | What it is |
|---|
bool HasListeners { get; } | True when anything is subscribed to Invoked. |
string Name { get; } | The event's name, as console subscribers see it. |
Events
Methods
Used in
Members of other types that take, return or hold a ConsoleEvent: