Click or drag to resize

GeoStreamRepository Constructor (String, String, Int32, String)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Construct a new GeoStreamRepository, connecting to one or more servers using specified credentials and a given session duration. After the session duration has passed the GeoStreamRepository will automatically re-authenticate. The same credentials will be used for all GeoStream servers in the servers array.

Namespace:  Telogis.GeoBase.Repositories
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public GeoStreamRepository(
	string username,
	string password,
	int duration,
	params string[] servers
)

Parameters

username
Type: SystemString
GeoStream user name
password
Type: SystemString
Password for the GeoStream user
duration
Type: SystemInt32
Session duration, in minutes. Minimum of 1 minute (enforced by the server)
servers
Type: SystemString
An array of server URL strings
Remarks

GeoStream servers are known by the URL pointing to the server's GeoStream directory (the GeoStream directory contains 'tile.aspx'). The URL should be of the form: http://myserver/path_to_geostream_directory/


The default installation of GeoBase configures IIS with the following URL: http://myserver/GeoStream/

Examples
C#
string[] myServers = {
    "http://tiles.mycompany.net/GeoStream/",
    "http://tiles2.mycompany.net/GeoStream/"
};
GeoStreamRepository myRepo = new GeoStreamRepository("username", "password", 15, myServers);
See Also