ArcGIS Runtime SDK for WPF - Library Reference
RegisterServers Method
See Also 
ESRI.ArcGIS.Client Namespace > IdentityManager Class : RegisterServers Method

serverInfos
The enumeration of serverInfo object that defines the secure service and token endpoint.
Register secure servers and the token endpoints. The Identity Manager makes its best guess to determine the location of the secure server and token endpoint so in most cases calling registerServers is not necessary. However if the location of your server or token endpoint is non-standard use this method to register the location. Additionaly if portal uses the OAuth authentication, it neeeds to be registered by this method.

Syntax

Visual Basic (Declaration) 
Public Sub RegisterServers( _
   ByVal serverInfos As IEnumerable(Of IdentityManager.ServerInfo) _
) 
C# 
public void RegisterServers( 
   IEnumerable<IdentityManager.ServerInfo> serverInfos
)

Remarks

Most generally, the IdentityManager can guess the token endpoint whether the url contains either '/sharing' (portal url) or '/rest/services' (arcgis service).

Parameters

serverInfos
The enumeration of serverInfo object that defines the secure service and token endpoint.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.