Click or drag to resize

GeoStreamRepository Constructor (String, String, GeoStreamRepositoryAuthenticationMode, 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. 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,
	GeoStreamRepositoryAuthenticationMode authMode,
	params string[] servers
)

Parameters

username
Type: SystemString
GeoStream user name
password
Type: SystemString
Password for the GeoStream user
authMode
Type: Telogis.GeoBase.RepositoriesGeoStreamRepositoryAuthenticationMode
The authentication mode to use with 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", GeoStreamRepository.AuthenticationMode.Url, myServers);
See Also