Method Register<T>
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
Register<T>(string, T)
Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaAgentServer.
IMaaAgentServer Register<T>(string name, T custom) where T : IMaaCustomResourceParameters
namestring-
The new name that will be used to reference the custom resource.
customT-
The custom resource instance to register.
Returns
Type Parameters
T-
The MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition.
Exceptions
- MaaInteroperationException
-
Thrown if the registration fails.
Register<T>(string?)
Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaAgentServer.
IMaaAgentServer Register<T>(string? name = null) where T : IMaaCustomResource, new()Parameters
namestring?-
The new name that will be used to reference the custom resource.
Returns
Type Parameters
T-
The MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition.
Exceptions
- MaaInteroperationException
-
Thrown if the registration fails.
Register<T>(T)
Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaAgentServer.
IMaaAgentServer Register<T>(T custom) where T : IMaaCustomResourceParameters
customT-
The custom resource instance to register.
Returns
Type Parameters
T-
The MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition.
Exceptions
- MaaInteroperationException
-
Thrown if the registration fails.