MarkLogic XCC/.Net Library

ModuleRunner Class

This is a very simple class that will invoke a named XQuery module on the server and return the result.

The main() method looks for two command-line args, a URL for the server (ContentSourceFactory.newContentSource(URI)}) and theURI of a module to invoke. This URI should be relative to the "Library" path set in the XDBC server configuration for the content server you're connection to (arg #1). This program invokes the named module and then prints the result sequence to stdout, one item per line.

The class has methods the could be used to set request options and to obtain the results as an array of Strings or as a real ResultSequence.

If you want to set external variables for a request, you can fetch the Request property to obtain a reference to the internal Request object and set the variable values on it before calling Invoke().

For a list of all members of this type, see ModuleRunner Members.

System.Object
   Marklogic.Xcc.Examples.ModuleRunner

[Visual Basic]
Public Class ModuleRunner
[C#]
public class ModuleRunner

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: Marklogic.Xcc.Examples

Assembly: MarklogicXcc (in MarklogicXcc.dll)

See Also

ModuleRunner Members | Marklogic.Xcc.Examples Namespace