Show / Hide Table of Contents

Class NullMessageInterface

A null implementation of IMessageInterface that does nothing. This is used when no message interface is provided, to avoid null references.

Inheritance
object
NullMessageInterface
Implements
IMessageConnector
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VulcanAI.Connectors
Assembly: VulcanAI.dll
Syntax
public class NullMessageInterface : IMessageConnector

Methods

| Edit this page View Source

SendMessageAsync(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.

| Edit this page View Source

StartAsync()

Starts the message interface.

Declaration
public Task StartAsync()
Returns
Type Description
Task

A task representing the asynchronous operation.

| Edit this page View Source

StopAsync()

Stops the message interface.

Declaration
public Task StopAsync()
Returns
Type Description
Task

A task representing the asynchronous operation.

Events

| Edit this page View Source

OnMessageReceived

Occurs when a message is received from the interface.

Declaration
public event EventHandler<Message>? OnMessageReceived
Event Type
Type Description
EventHandler<Message>

Implements

IMessageConnector
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX