C# 클래스 QiRestApiSample.Program

파일 보기 프로젝트 열기: osisoft/Qi-Samples

공개 메소드들

메소드 설명
Main ( string args ) : void

보호된 메소드들

메소드 설명
DelayForQiConsistency ( ) : void

Delays the program for an amount of time to allow the multiple servers on Qi to become consistent with recent calls.

DumpEvents ( IEnumerable evnts ) : void
GetWaveDataTypeObject ( string sampleTypeId ) : QiType

Holds the code that forms the WaveData QiType

HandleQiCallAsync ( Func qiCallAsync ) : Task

Makes the asynchronous Qi call and handles any exceptions that may follow

PrintError ( string exceptionDescription, Exception exception ) : void

Prints out a formated error string

메소드 상세

DelayForQiConsistency() 보호된 정적인 메소드

Delays the program for an amount of time to allow the multiple servers on Qi to become consistent with recent calls.
protected static DelayForQiConsistency ( ) : void
리턴 void

DumpEvents() 보호된 정적인 메소드

protected static DumpEvents ( IEnumerable evnts ) : void
evnts IEnumerable
리턴 void

GetWaveDataTypeObject() 보호된 정적인 메소드

Holds the code that forms the WaveData QiType
protected static GetWaveDataTypeObject ( string sampleTypeId ) : QiType
sampleTypeId string
리턴 QiType

HandleQiCallAsync() 보호된 정적인 메소드

Makes the asynchronous Qi call and handles any exceptions that may follow
protected static HandleQiCallAsync ( Func qiCallAsync ) : Task
qiCallAsync Func A function that returns an asychronous call to Qi
리턴 Task

Main() 공개 정적인 메소드

public static Main ( string args ) : void
args string
리턴 void

PrintError() 보호된 정적인 메소드

Prints out a formated error string
protected static PrintError ( string exceptionDescription, Exception exception ) : void
exceptionDescription string A description of what may have caused the exception
exception System.Exception The exception itself
리턴 void