/// <summary> /// Allows the user to register for updates to the connected VisiLED Full Status. /// </summary> /// <param name="context">The context in which to execture the action.</param> /// <param name="action">The action to execute on a message output event.</param> public void RegisterFullStatusUpdate(MessageBroker.MessageContext context, Action <StatusObject> action) { MessageBroker.Register("VisiLEDStatus", context, action); }
/// <summary> /// Allows the user to register for output messages from the class. /// This is used when the user wants to echo traffic from the commands. /// See SendCommandWithEcho. /// </summary> /// <param name="context">The context in which to execture the action.</param> /// <param name="action">The action to execute on a message output event.</param> public void RegisterMessageOutput(MessageBroker.MessageContext context, Action <string> action) { MessageBroker.Register("MessageOutput", context, action); }
/// <summary> /// Allows the user to register for updates to the connected VisiLED Channel. /// </summary> /// <param name="channel">The channel to register for</param> /// <param name="context">The context in which to execture the action.</param> /// <param name="action">The action to execute on a message output event.</param> public void RegisterChannelStatusUpdate(Channel channel, MessageBroker.MessageContext context, Action <ChannelObject> action) { MessageBroker.Register($"VisiLED{channel}", context, action); }
/// <summary> /// Allows the user to register for updates to the connected VisiLED Common Status. /// </summary> /// <param name="context">The context in which to execture the action.</param> /// <param name="action">The action to execute on a message output event.</param> public void RegisterCommonStatusUpdate(MessageBroker.MessageContext context, Action <CommonObject> action) { MessageBroker.Register("VisiLEDCommon", context, action); }
/// <summary> /// Register to updates of the Firmware uploader. /// </summary> /// <param name="context">The context in which to run the update action.</param> /// <param name="action">The lambda expression to execute on updates.</param> public void RegisterPercentUpdate(MessageBroker.MessageContext context, Action <TransferStatus> action) { _messageBroker.Register("PercentUpdate", context, action); }
/// <summary> /// Allows the user to register for Listening Status Updates from the Discovery Object. /// </summary> /// <param name="context">Allows the user to specify how the update should arrive for syncing with GUI applications.</param> /// <param name="action">The lambda expression to execute on discovery events.</param> public void RegisterListeningStatusUpdate(MessageBroker.MessageContext context, Action <bool> action) { _messageBroker.Register("ListeningStatusUpdate", context, action); }
/// <summary> /// Allows the user to register for Unit Discovery Updates from the network. /// </summary> /// <param name="context">Allows the user to specify how the update should arrive for syncing with GUI applications.</param> /// <param name="action">The lambda expression to execute on discovery events.</param> public void RegisterDiscoveredUnit(MessageBroker.MessageContext context, Action <DiscoveryObject> action) { _messageBroker.Register("DiscoveredUnit", context, action); }
/// <summary> /// Register to updates of the Firmware uploader. /// </summary> /// <param name="context">The context in which to run the update action.</param> /// <param name="action">The lambda expression to execute on updates.</param> public void RegisterStatusUpdate(MessageBroker.MessageContext context, Action <string> action) { _messageBroker.Register("StatusUpdate", context, action); }
/// <summary> /// Allows the user to register for Connection Updates on the socket. /// </summary> /// <param name="context">Allows the user to specify how the update should arrive for syncing with GUI applications.</param> /// <param name="action">The lambda expression to execute on updates.</param> public void RegisterConnectionUpdate(MessageBroker.MessageContext context, Action <ConnectionUpdateArgs> action) { MessageBroker.Register("ConnectionUpdate", context, action); }