C# 클래스 CrownPeakPublic.AccessAPI.AccessSession

상속: IDisposable
파일 보기 프로젝트 열기: Crownpeak/Access-API-Examples 1 사용 예제들

공개 메소드들

메소드 설명
AccessSession ( string server, string instance, string username, string password, string apiKey, string apiSecret = "", bool requestCache = false ) : System

Starts a session for the user on the given server/instance. This in intended to be called with a using block. All AccessControllers used within will be automatically authenticated. The Dispose method will Logout the user when complete.

Dispose ( ) : void

비공개 메소드들

메소드 설명
Authenticate ( bool withCache ) : void
Logout ( ) : void

메소드 상세

AccessSession() 공개 메소드

Starts a session for the user on the given server/instance. This in intended to be called with a using block. All AccessControllers used within will be automatically authenticated. The Dispose method will Logout the user when complete.
public AccessSession ( string server, string instance, string username, string password, string apiKey, string apiSecret = "", bool requestCache = false ) : System
server string Domain of the server to use, ex: cms.crownpeak.com
instance string Name of the instance to use, ex: CPQA
username string Username of a user with active account in the CMS
password string Password of user
apiKey string Public developer API key supplied by CrownPeak
apiSecret string (Optional)Developer API Secret Key, ideally this will come from a secure database. Do not store key within application. Supplying a secret key will trigger Signature authentication method
requestCache bool (Optional)When set to true the Cache property will be populated with data that can be used to cache information that does not often change. Cache property will be null otherwise.
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void