Click or drag to resize

GeoStreamRepository Constructor (String, String, Int32, WebProxy, GeoStreamRepositoryAuthenticationMode, String)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Construct a new GeoStreamRepository which is accessed through a proxy server, 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,
	WebProxy proxy,
	GeoStreamRepositoryAuthenticationMode authMode,
	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)
proxy
Type: System.NetWebProxy
Proxy server information, including the server address and authentication credentials
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#
WebProxy proxy = new WebProxy("http:\\myproxy:9012", true)
{
    Credentials = new NetworkCredential("proxyusername", "proxypassword")
};

string[] myServers = {
    "http://tiles.mycompany.net/GeoStream/",
    "http://tiles2.mycompany.net/GeoStream/"
};
GeoStreamRepository myRepo = new GeoStreamRepository("geostreamusername", "geostreampassword", 15, proxy, GeoStreamRepository.AuthenticationMode.Url, myServers);
See Also