C# Класс PreStorm.Token

Abstracts the ArcGIS Server token and its generation.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Token ( string token, System.DateTime expiry ) : System

Описание методов

GenerateToken() публичный статический Метод

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
Результат Token

ToString() публичный Метод

Returns the token string.
public ToString ( ) : string
Результат string

Token() публичный Метод

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
Результат System

Token() публичный Метод

Initializes a new instance of the Token class based on an existing token string.
public Token ( string token ) : System
token string The token string.
Результат System

Token() публичный Метод

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
Результат System

Token() публичный Метод

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
Результат System