C# Class openHistorian.Adapters.Connection

Represents an openHistorian connection.
Inheritance: IDisposable
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode Description
Connection ( string historianServer, string instanceName ) : System

Creates a new openHistorian Connection.

Dispose ( ) : void

Releases all the resources used by the Connection object.

OpenDatabase ( string instanceName = null ) : openHistorian.Snap.HistorianValue>.GSF.Snap.Services.ClientDatabaseBase

Opens new database instance for this Connection.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the Connection object and optionally releases the managed resources.

Method Details

Connection() public méthode

Creates a new openHistorian Connection.
public Connection ( string historianServer, string instanceName ) : System
historianServer string Historian server connection string, e.g., "localhost" or "myhistorian:38402"
instanceName string Instance name of historian, e.g., "PPA".
Résultat System

Dispose() public méthode

Releases all the resources used by the Connection object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases the unmanaged resources used by the Connection object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

OpenDatabase() public méthode

Opens new database instance for this Connection.
public OpenDatabase ( string instanceName = null ) : openHistorian.Snap.HistorianValue>.GSF.Snap.Services.ClientDatabaseBase
instanceName string Instance name of historian, e.g., "PPA" - or null to use default instance name associated with this connection.
Résultat openHistorian.Snap.HistorianValue>.GSF.Snap.Services.ClientDatabaseBase