C# Class Automobile.Registrar.SQLiteClient

Inheritance: IMobileDb
Afficher le fichier Open project: vistaprint/automobile

Méthodes publiques

Méthode Description
Dispose ( ) : void

Closes the shared connection if one exists

GetFirstMatch ( DeviceInfo device ) : DeviceInfo
GetFirstMatch ( DeviceInfo device, bool filterByAvailible ) : DeviceInfo

Returns the IP of the first registered device which matches all the info. Null values are ignored in the match

Register ( DeviceInfo info ) : void
SQLiteClient ( string dbName ) : System

Creates tables, if needed.

SQLiteClient ( string dbName, bool shared ) : System

Creates tables, if needed. Optionally creates a shared connection (for in-memory or temporary file db).

SetAvailibility ( DeviceInfo device, bool availible ) : void

Method Details

Dispose() public méthode

Closes the shared connection if one exists
public Dispose ( ) : void
Résultat void

GetFirstMatch() public méthode

public GetFirstMatch ( DeviceInfo device ) : DeviceInfo
device Automobile.Mobile.Framework.Data.DeviceInfo
Résultat Automobile.Mobile.Framework.Data.DeviceInfo

GetFirstMatch() public méthode

Returns the IP of the first registered device which matches all the info. Null values are ignored in the match
public GetFirstMatch ( DeviceInfo device, bool filterByAvailible ) : DeviceInfo
device Automobile.Mobile.Framework.Data.DeviceInfo
filterByAvailible bool
Résultat Automobile.Mobile.Framework.Data.DeviceInfo

Register() public méthode

public Register ( DeviceInfo info ) : void
info Automobile.Mobile.Framework.Data.DeviceInfo
Résultat void

SQLiteClient() public méthode

Creates tables, if needed.
public SQLiteClient ( string dbName ) : System
dbName string Name of the file to use
Résultat System

SQLiteClient() public méthode

Creates tables, if needed. Optionally creates a shared connection (for in-memory or temporary file db).
public SQLiteClient ( string dbName, bool shared ) : System
dbName string Name of the file to use, or :memory: for in memory db
shared bool To share a connection object between all calls to this class
Résultat System

SetAvailibility() public méthode

public SetAvailibility ( DeviceInfo device, bool availible ) : void
device Automobile.Mobile.Framework.Data.DeviceInfo
availible bool
Résultat void