Interface IMaaAgentClient
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
An interface defining wrapped members for MaaAgentClient.
public interface IMaaAgentClient : IMaaDisposable, IDisposable
Implements
Properties
- AgentServerProcess
-
Gets the agent server process managed by MaaFramework.Binding.IMaaAgentClient from method LinkStart.
- Id
-
Gets the unique identifier used to communicate with the agent server.
- IsConnected
-
Gets whether the MaaFramework.Binding.IMaaAgentClient is connected to the agent server.
- Resource
-
Gets or sets a resource that binds to the MaaFramework.Binding.IMaaAgentClient.
Methods
- LinkStart()
-
Starts the connection.
- LinkStart(ProcessStartInfo, CancellationToken)
-
Starts the agent server process using the specified System.Diagnostics.ProcessStartInfo and connects to the agent server.
To start a new process, the current MaaFramework.Binding.IMaaAgentClient.AgentServerProcess must have exited first.
The agent server process will be killed when System.IDisposable.Dispose is called.
- LinkStart(AgentServerStartupMethod, CancellationToken)
-
Starts the agent server process using the specified System.Diagnostics.ProcessStartInfo and connects to the agent server.
To start a new process, the current MaaFramework.Binding.IMaaAgentClient.AgentServerProcess must have exited first.
The agent server process will be killed when System.IDisposable.Dispose is called.
- LinkStartUnlessProcessExit(Process, CancellationToken)
-
Starts the connection asynchronously unless the process has exited.
- LinkStop()
-
Stops the connection.