Register package located in a resource containing user defined functions with server.
This asynchronous server call will return before command is complete.
The user can optionally wait for command completion by using the returned
RegisterTask instance.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax
C#
RegisterTask Register( Policy policy, Assembly resourceAssembly, string resourcePath, string serverPath, Language language )
Parameters
- policy
- Type: Aerospike.ClientPolicy
generic configuration parameters, pass in null for defaults - resourceAssembly
- Type: System.ReflectionAssembly
assembly where resource is located. Current assembly can be obtained by: Assembly.GetExecutingAssembly() - resourcePath
- Type: SystemString
namespace path where Lua resource is located. Example: Aerospike.Client.Resources.mypackage.lua - serverPath
- Type: SystemString
path to store user defined functions on the server, relative to configured script directory. - language
- Type: Aerospike.ClientLanguage
language of user defined functions
Return Value
Type: RegisterTaskExceptions
Exception | Condition |
---|---|
AerospikeException | if register fails |
See Also