C# 클래스 Sequencing.WeatherApp.Controllers.AppChain.SqApiServiceFacade

SqApiServiceFacade class is responsible for calling SQAPI operations (including app-chain creation, querying statuses and getting results
파일 보기 프로젝트 열기: SequencingDOTcom/Weather-My-Way-RTP-app 1 사용 예제들

공개 메소드들

메소드 설명
CheckAppChainStatus ( long idJob ) : string

Checks executing app chain status

GetAppChainResults ( long idJob ) : AppResultsHolder

Returns results of executed app chain

SendUserNotification ( string msg ) : void

Sends user onsite notification

SqApiServiceFacade ( string url ) : System
SqApiServiceFacade ( string apiUrl, string userName ) : System
StartAppChain ( string appCode, string>.Dictionary pars ) : StartAppRs

Starts app-chain

비공개 메소드들

메소드 설명
CreateClient ( ) : RestSharp.RestClient
CreateRq ( string opName, Method method ) : RestRequest
RunRq ( RestSharp.RestClient _restClient, RestRequest _restRequest ) : IRestResponse

Runs requests, is executed several times in case of error - request is attempted with refreshed auth data

메소드 상세

CheckAppChainStatus() 공개 메소드

Checks executing app chain status
public CheckAppChainStatus ( long idJob ) : string
idJob long app chain job id
리턴 string

GetAppChainResults() 공개 메소드

Returns results of executed app chain
public GetAppChainResults ( long idJob ) : AppResultsHolder
idJob long app chain job id
리턴 AppResultsHolder

SendUserNotification() 공개 메소드

Sends user onsite notification
public SendUserNotification ( string msg ) : void
msg string message to user
리턴 void

SqApiServiceFacade() 공개 메소드

public SqApiServiceFacade ( string url ) : System
url string
리턴 System

SqApiServiceFacade() 공개 메소드

public SqApiServiceFacade ( string apiUrl, string userName ) : System
apiUrl string
userName string
리턴 System

StartAppChain() 공개 메소드

Starts app-chain
public StartAppChain ( string appCode, string>.Dictionary pars ) : StartAppRs
appCode string code of app-chain
pars string>.Dictionary app-chain parameters
리턴 StartAppRs