OnionSession(String, String)

Initialises a new instance of the OnionSession class.

This constructor reads out the Uri to the onion.net Information Server from the configuration file of the application.

The configuration section must be located under onion/client. The OnionClientSectionHandler is used as a handler for the configuration.

Parameter

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.