Token Class

PreStorm - A Data Client for ArcGIS Server REST API
Abstracts the ArcGIS Server token and its generation.
Inheritance Hierarchy

SystemObject
  PreStormToken

Namespace:  PreStorm
Assembly:  PreStorm (in PreStorm.dll) Version: 1.8.19.0 (1.8.19.0)
Syntax

public class Token

The Token type exposes the following members.

Constructors

  NameDescription
Public methodToken(FuncString, Token)
Initializes a new instance of the Token class based on a delegate function for generating the token from the service url.
Public methodToken(String)
Initializes a new instance of the Token class based on an existing token string.
Public methodToken(String, String)
Initializes a new instance of the Token class based on the credentials. When the token is generated this way, it is self-renewing and will not expire.
Public methodToken(String, String, String)
Initializes a new instance of the Token class based on the credentials. When the token is generated this way, it is self-renewing and will not expire.
Top
Properties

  NameDescription
Public propertyMinutesRemaining
The time remaining before this token expires.
Top
Methods

  NameDescription
Public methodStatic memberGenerateToken
Generates a token for the service url.
Public methodToString
Returns the token string.
(Overrides ObjectToString.)
Top
Events

  NameDescription
Public eventTokenGenerated
Indicates that a new token has been generated.
Top
See Also

Reference