C# Class PreStorm.Token

Abstracts the ArcGIS Server token and its generation.
Afficher le fichier Open project: jshirota/PreStorm Class Usage Examples

Méthodes publiques

Méthode Description
GenerateToken ( string url, string userName, string password, int expiration = null ) : Token

Generates a token for the service url.

ToString ( ) : string

Returns the token string.

Token ( Token>.Func generateToken ) : System

Initializes a new instance of the Token class based on a delegate function for generating the token from the service url.

Token ( string token ) : System

Initializes a new instance of the Token class based on an existing token string.

Token ( string userName, string password ) : System

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.

Token ( string url, string userName, string password ) : System

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.

Private Methods

Méthode Description
Token ( string token, System.DateTime expiry ) : System

Method Details

GenerateToken() public static méthode

Generates a token for the service url.
public static GenerateToken ( string url, string userName, string password, int expiration = null ) : Token
url string
userName string
password string
expiration int
Résultat Token

ToString() public méthode

Returns the token string.
public ToString ( ) : string
Résultat string

Token() public méthode

Initializes a new instance of the Token class based on a delegate function for generating the token from the service url.
public Token ( Token>.Func generateToken ) : System
generateToken Token>.Func
Résultat System

Token() public méthode

Initializes a new instance of the Token class based on an existing token string.
public Token ( string token ) : System
token string The token string.
Résultat System

Token() public méthode

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 Token ( string userName, string password ) : System
userName string
password string
Résultat System

Token() public méthode

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 Token ( string url, string userName, string password ) : System
url string
userName string
password string
Résultat System