C# Class QiClientLibsSample.Program

Mostra file Open project: osisoft/Qi-Samples

Public Methods

Method Description
Main ( string args ) : void

Protected Methods

Method 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

Prints out each event in the list of events given

GetQiAdministrationService ( ) : IQiAdministrationService

Returns a service which makes calls taht manage namespaces

GetQiDataService ( string namespaceId ) : IQiDataService

Returns a service which makes calls taht manage data held in streams

GetQiMetadataService ( string namespaceId ) : IQiMetadataService

Returns a service which makes calls that manage streams, types, and behaviors

GetQiSecurityHandler ( ) : QiSecurityHandler

This will return a QiSecurityHandler using the values held in Constants

HandleQiCallAsync ( Func qiCallAsync ) : System.Threading.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 method

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
return void

DumpEvents() protected static method

Prints out each event in the list of events given
protected static DumpEvents ( IEnumerable evnts ) : void
evnts IEnumerable
return void

GetQiAdministrationService() protected static method

Returns a service which makes calls taht manage namespaces
protected static GetQiAdministrationService ( ) : IQiAdministrationService
return IQiAdministrationService

GetQiDataService() protected static method

Returns a service which makes calls taht manage data held in streams
protected static GetQiDataService ( string namespaceId ) : IQiDataService
namespaceId string
return IQiDataService

GetQiMetadataService() protected static method

Returns a service which makes calls that manage streams, types, and behaviors
protected static GetQiMetadataService ( string namespaceId ) : IQiMetadataService
namespaceId string The id of the namespace that the service will interface with
return IQiMetadataService

GetQiSecurityHandler() protected static method

This will return a QiSecurityHandler using the values held in Constants
protected static GetQiSecurityHandler ( ) : QiSecurityHandler
return QiSecurityHandler

HandleQiCallAsync() protected static method

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

Main() public static method

public static Main ( string args ) : void
args string
return void

PrintError() protected static method

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
return void