Method WithNativeLibrary
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
WithNativeLibrary(MaaAgentServer, params string[])
Configures the MaaAgentServer to use the specified native libraries.
public static MaaAgentServer WithNativeLibrary(this MaaAgentServer server, params string[] paths)Parameters
serverMaaAgentServer-
The server.
pathsstring[]-
The directory paths to search for native libraries.
Returns
Remarks
Uses this method before other methods inclue events; otherwise, throws an System.InvalidOperationException.
Exceptions
- InvalidOperationException
-
NativeLibrary is already loaded.