5 using Commands.Results;
A generic, object-based variation of ICommandResult<T>.
Provides a standardised method of inter-plugin, message-based communication.
Basic contract between Hermod and any laoded plugins which allows jobs to be delegated to other plugi...
void SubscribeTopics(params string[] topics)
Allows a plugin to subscribe to multiple individual topics.
T GetApplicationConfig< T >(string config)
Retrieves an application configuration value.
void Debug(string? msg)
Logs a debug message to the logger.
void Warning(string? msg)
Logs a warning message to the logger.
void UnsubscribeTopic(string topicName)
Allows a plugin to unsubscribe from a single topic.
void Information(string? msg)
Logs an information message to the logger.
void SubscribeTopic(string topicName)
Allows a plugin to subscribe to an individual topic.
ICommandResult ExecuteCommand(params string[] command)
Executes a single command.
bool TryGetApplicationConfig< T >(string config, out T? value)
Tries to retrieve an application configuration value.
void Error(string? msg)
Logs an error message to the logger.
void Trace(string? msg)
Logs a trace message to the logger.
void PublishMessage(string topic, object? message)
Allows a plugin to publish a message on a given topic.