GeoBlazor Pro


layout: pro title: NetworkService parent: Pro Classes grand_parent: GeoBlazor Pro —

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Model

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(IJSRuntime, AuthenticationManager, IAppValidator) Constructor

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

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

Parameters

jsRuntime Microsoft.JSInterop.IJSRuntime

authenticationManager dymaptic.GeoBlazor.Core.Model.AuthenticationManager

appValidator dymaptic.GeoBlazor.Core.IAppValidator

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.Model.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.Model.RequestOptions

Additional options to be used for the data request.

Returns

System.Threading.Tasks.Task<ServiceDescription>