C# 클래스 PreStorm.Token

Abstracts the ArcGIS Server token and its generation.
파일 보기 프로젝트 열기: jshirota/PreStorm 1 사용 예제들

공개 메소드들

메소드 설명
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