Class MaaAgentServer
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
A wrapper class providing a reference implementation for MaaFramework.Binding.Interop.Native.MaaAgentServer.
public sealed class MaaAgentServer : IMaaAgentServer
Inheritance
Implements
Inherited Members
Extension Methods
Properties
- Current
-
Gets the current MaaFramework.Binding.MaaAgentServer instance.
- CurrentId
-
Gets the unique identifier used to communicate with the agent client.
Methods
- Detach()
-
Separates the thread for receiving client messages, allowing execution to continue independently.
- Join()
-
Blocks the calling thread until the thread for receiving client messages finishes its execution.
- Register<T>(string, T)
-
Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaAgentServer.
- Register<T>(T)
-
Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaAgentServer.
- ShutDown()
-
Shuts down the agent server.
- StartUp()
-
Starts up the agent server to prepare for receiving client messages from the specified connection.
- WithIdentifier(string)
-
Configures the unique identifier used to communicate with the agent client.