C# Class QiRestApiSample.Program

Afficher le fichier Open project: osisoft/Qi-Samples

Méthodes publiques

Méthode Description
Main ( string args ) : void

Méthodes protégées

Méthode Description
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

Method Details

DelayForQiConsistency() protected static méthode

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
Résultat void

DumpEvents() protected static méthode

protected static DumpEvents ( IEnumerable evnts ) : void
evnts IEnumerable
Résultat void

GetWaveDataTypeObject() protected static méthode

Holds the code that forms the WaveData QiType
protected static GetWaveDataTypeObject ( string sampleTypeId ) : QiType
sampleTypeId string
Résultat QiType

HandleQiCallAsync() protected static méthode

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
Résultat Task

Main() public static méthode

public static Main ( string args ) : void
args string
Résultat void

PrintError() protected static méthode

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
Résultat void