Click or drag to resize

Using GeoStream with .NET

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Using GeoStream in Your .NET Application

To use GeoStream in your .NET application, follow our tutorials about using GeoBase, and place the following appropriate code before you start using GeoBase in your application (for example, at the beginning of static void main()).

C#
Repository.Default = new GeoStreamRepository("http://serverName");
Switching Between GeoStream Modes

To switch between Local and GeoStream modes set the Repository to the appropriate type.

For local mode:

C#
Repository.Default = new SimpleRepository("fileName.gbfs");

For GeoStream mode:

C#
Repository.Default = new GeoStreamRepository("http://serverName");

As an example, using the local GeoStream server:

C#
Repository.Default = new GeoStreamRepository("http://localhost/GeoStream");