C# 클래스 PaymentApp2_Listener, API-Platform

Payment App2 Listener class
상속: System.Web.UI.Page
파일 보기 프로젝트 열기: attdevsupport/API-Platform

공개 메소드들

메소드 설명
BypassCertificateError ( ) : void

This function is used to neglect the ssl handshake error with authentication server.

GetNotificationIds ( System stream ) : ArrayList

Represents the List of Notification Ids

/// Gets or sets the list of Notificationids. ///

Method fetches notification ids from the stream.

보호된 메소드들

메소드 설명
Page_Load ( object sender, EventArgs e ) : void

Default method, that gets called upon loading the page.

비공개 메소드들

메소드 설명
GetAccessToken ( int type ) : bool

This function get the access token based on the type parameter type values. If type value is 1, access token is fetch for client credential flow If type value is 2, access token is fetch for client credential flow based on the exisiting refresh token

IsTokenValid ( ) : string

This function validates the expiry of the access token and refresh token, function compares the current time with the refresh token taken time, if current time is greater then returns INVALID_REFRESH_TOKEN function compares the difference of last access token taken time and the current time with the expiry seconds, if its more, function returns INVALID_ACCESS_TOKEN otherwise returns VALID_ACCESS_TOKEN

LogError ( string text ) : void

Logs error message onto file

ReadAccessTokenFile ( ) : bool

This function reads the Access Token File and stores the values of access token, expiry seconds refresh token, last access token time and refresh token expiry time This function returns true, if access token file and all others attributes read successfully otherwise returns false

ReadAndGetAccessToken ( ) : bool

This function is used to read access token file and validate the access token. This function returns true if access token is valid, or else false is returned.

ReadConfigFile ( ) : bool

Reads from config file and assigns to local variables

메소드 상세

BypassCertificateError() 공개 정적인 메소드

This function is used to neglect the ssl handshake error with authentication server.
public static BypassCertificateError ( ) : void
리턴 void

GetNotificationIds() 공개 메소드

Represents the List of Notification Ids /// Gets or sets the list of Notificationids. /// Method fetches notification ids from the stream.
public GetNotificationIds ( System stream ) : ArrayList
stream System Input stream received from listener
리턴 ArrayList

Page_Load() 보호된 메소드

Default method, that gets called upon loading the page.
protected Page_Load ( object sender, EventArgs e ) : void
sender object object that invoked this method
e EventArgs Event arguments
리턴 void