Class NullMessageInterface
A null implementation of IMessageInterface that does nothing. This is used when no message interface is provided, to avoid null references.
Implements
Inherited Members
Namespace: VulcanAI.Connectors
Assembly: VulcanAI.dll
Syntax
public class NullMessageInterface : IMessageConnector
Methods
| Edit this page View SourceSendMessageAsync(Message)
Sends a message through the interface.
Declaration
public Task SendMessageAsync(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message to send. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |
StartAsync()
Starts the message interface.
Declaration
public Task StartAsync()
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |
StopAsync()
Stops the message interface.
Declaration
public Task StopAsync()
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |
Events
| Edit this page View SourceOnMessageReceived
Occurs when a message is received from the interface.
Declaration
public event EventHandler<Message>? OnMessageReceived
Event Type
Type | Description |
---|---|
EventHandler<Message> |