GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components

NetworkService Class

This class contains functions for working with network services.
ArcGIS Maps SDK for JavaScript

public class NetworkService : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent

Inheritance System.Object 🡒 dymaptic.GeoBlazor.Core.Model.LogicComponent 🡒 ProLogicComponent 🡒 NetworkService

Constructors

NetworkService(AuthenticationManager, JsModuleManager, IAppValidator, IJSRuntime) Constructor

Constructor for use by Dependency Injection. Use AddGeoBlazorPro(this IServiceCollection, IConfiguration) in your startup code.

public NetworkService(dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager, dymaptic.GeoBlazor.Core.JsModuleManager jsModuleManager, dymaptic.GeoBlazor.Core.IAppValidator appValidator, Microsoft.JSInterop.IJSRuntime jsRuntime);

Parameters

authenticationManager dymaptic.GeoBlazor.Core.Model.AuthenticationManager

jsModuleManager dymaptic.GeoBlazor.Core.JsModuleManager

appValidator dymaptic.GeoBlazor.Core.IAppValidator

jsRuntime Microsoft.JSInterop.IJSRuntime

Methods

NetworkService.FetchServiceDescription(string, string, RequestOptions) Method

Retrieve a description of the network service.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.ServiceDescription> FetchServiceDescription(string url, string? apiKey=null, dymaptic.GeoBlazor.Core.Options.RequestOptions? requestOptions=null);

Parameters

url System.String

URL to the ArcGIS Server REST resource that represents a network analysis service.

apiKey System.String

An authorization string used to access a resource or service (see API keys).

requestOptions dymaptic.GeoBlazor.Core.Options.RequestOptions

Additional options to be used for the data request.

Returns

System.Threading.Tasks.Task<ServiceDescription>