Skip to main content

ConsoleEvent<T>

A class in Root.Township, Alta.Console.

A named event that remote console clients can subscribe to over the websocket. Creating one registers it; invoking it queues the data to be sent on a background thread.

Constructors​

MemberWhat it is
ConsoleEvent(string name)Creates a ConsoleEvent from name.

Properties​

MemberWhat it is
Type Type { get; }The data type the event sends.

Methods​

MemberWhat it is
override void Deregister()Removes all listeners and unregisters the event.
void Invoke(Func<T> getData)If anyone is subscribed, gets the data from the function and queues it as a subscription message.

Used in​

Members of other types that take, return or hold a ConsoleEvent&lt;T>: