Interface IMessageConnector
Defines the interface for message-based communication systems.
Namespace: VulcanAI.Connectors
Assembly: VulcanAI.dll
Syntax
public interface IMessageConnector
Methods
| Edit this page View SourceSendMessageAsync(Message)
Sends a message through the interface.
Declaration
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
Task StartAsync()
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |
StopAsync()
Stops the message interface.
Declaration
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
event EventHandler<Message> OnMessageReceived
Event Type
Type | Description |
---|---|
EventHandler<Message> |