Class LocalServer
A singleton representing a local server. This class enables a number of LocalService types to be created based on local geographic content.
Inheritance
Namespace: Esri.ArcGISRuntime.LocalServices
Assembly: Esri.ArcGISRuntime.LocalServices.dll
Syntax
public sealed class LocalServer
Remarks
Before using the LocalServer the runtime deployment must be licensed with a valid license string. For more information please see the
Arc
To determine the current state of the LocalServer the Status property will provide a
Local
Finally, when the LocalServer is no longer required the asynchronous
Shutdown
It is not necessary to work with the LocalServer directly. Instead, creating and starting the individual LocalService classes (
Local
Properties
Name | Description |
---|---|
App |
Gets or sets the application data path for the runtime deployment used by this application. |
Error | Gets the associated error if the server's Status is Failed |
Filter |
Gets or sets a value indicating whether to filter web content. Turns on filtering of HTML content for feature service text fields. By default this is enabled. When this is enabled only a small subset of HTML is accepted and an error will occur if unsupported HTML is used. Filter web content should be set to disabled if you want to use unfiltered HTML. |
Instance | Gets the single Local |
Services | Gets the collection of active local services. These services can be in a starting, stopping, or running state. |
Status | Gets the current status of the LocalServer. |
Url | Gets the base URL of the local server. For example: http://127.0.0.1:50000/arcgis/rest |
Methods
Name | Description |
---|---|
Start |
Asynchronously starts the local server. The server can only be started from the STOPPED or FAILED states. |
Stop |
Asynchronously shuts down the LocalServer. |
Events
Name | Description |
---|---|
Status |
Occurs when Status of this local server has changed. |
Applies to
Target | Versions |
---|---|
.NET Windows | 100.13 - 200.6 |
.NET Framework | 100.0 - 200.6 |