OnionSession(String, String, String, StatisticOptions)

Initialises a new instance of the OnionSession class.

Parameter

serverUrl

Type: System.String

This parameter is the URL to the onion.net Information Server.

The form of the URL must be as follows: <protocoll>://<dns>:<port>/onion/server

The approved protocol is configured in the onion.net Information Server. The default value is tcp.

The DNS is an IP address or a domain under which the onion.net Information Server is available (installed). The access is limited to one IP address where appropriate, which may be configured in the onion.net Information Server. This limitation is not configured by default.

The port configured in the onion.net Information Server is indicated as the port. The default port is 8087.

userName

Type: System.String

This parameter is the user to establish the session with the onion.net Information Server. Any queries of this session are executed with the permissions of this user.

If a further session (subsession) is generated from this session, then the queries are executed with this user and then restricted to the permissions of the user of the subsession where appropriate. This can mean on the other hand that if the user of the main session has fewer permissions than the user of the subsession, the user of the subsession can never see more data than the user of the main session.

password

Type: System.String

This parameter is the password of the user logging onto this session. The password is indicated here in plain text.

options

Type: StatisticOptions

This parameter indicates whether the cache for the Client API session is to be activated in order to generate statistics.