C# Class FdoToolbox.Base.Services.FdoConnectionManager

Manages FDO connections.
Inheritance: IFdoConnectionManager
Mostrar archivo Open project: jumpinjackie/fdotoolbox Class Usage Examples

Public Methods

Method Description
AddConnection ( string name, FdoToolbox conn ) : void

Adds a FDO connection.

CanRenameConnection ( string oldName, string newName ) : ConnectionRenameResult

Determines whether this this connection can be renamed to the specified name

Clear ( ) : void

Removes all connections

GetConnection ( string name ) : FdoConnection

Gets the connection.

GetConnection ( string provider, string connStr ) : FdoConnection

Gets the connection by provider and connection string

GetConnectionNames ( ) : ICollection

Gets the connection names.

GetName ( FdoConnection conn ) : string

Gets the name of a connection

InitializeService ( ) : void

Initializes the service.

Load ( ) : void

Load all persisted connections from the session directory

NameExists ( string name ) : bool

Determines whether a connection exists (by name)

RefreshConnection ( string name ) : void

Refreshes the connection.

RemoveConnection ( string name ) : void

Removes the connection.

RenameConnection ( string oldName, string newName ) : void

Renames a connection.

Save ( ) : void

Saves all currently loaded connections to the session directory

UnloadService ( ) : void

Unloads the service.

Method Details

AddConnection() public method

Adds a FDO connection.
public AddConnection ( string name, FdoToolbox conn ) : void
name string The name of the connection.
conn FdoToolbox The connection.
return void

CanRenameConnection() public method

Determines whether this this connection can be renamed to the specified name
public CanRenameConnection ( string oldName, string newName ) : ConnectionRenameResult
oldName string The old name.
newName string The new name.
return ConnectionRenameResult

Clear() public method

Removes all connections
public Clear ( ) : void
return void

GetConnection() public method

Gets the connection.
public GetConnection ( string name ) : FdoConnection
name string The name of the connection.
return FdoToolbox.Core.Feature.FdoConnection

GetConnection() public method

Gets the connection by provider and connection string
public GetConnection ( string provider, string connStr ) : FdoConnection
provider string The provider.
connStr string The connection string.
return FdoToolbox.Core.Feature.FdoConnection

GetConnectionNames() public method

Gets the connection names.
public GetConnectionNames ( ) : ICollection
return ICollection

GetName() public method

Gets the name of a connection
public GetName ( FdoConnection conn ) : string
conn FdoToolbox.Core.Feature.FdoConnection The connection.
return string

InitializeService() public method

Initializes the service.
public InitializeService ( ) : void
return void

Load() public method

Load all persisted connections from the session directory
public Load ( ) : void
return void

NameExists() public method

Determines whether a connection exists (by name)
public NameExists ( string name ) : bool
name string The name of the connection
return bool

RefreshConnection() public method

Refreshes the connection.
public RefreshConnection ( string name ) : void
name string The name of the connection.
return void

RemoveConnection() public method

Removes the connection.
public RemoveConnection ( string name ) : void
name string The name of the connection.
return void

RenameConnection() public method

Renames a connection.
public RenameConnection ( string oldName, string newName ) : void
oldName string The old name.
newName string The new name.
return void

Save() public method

Saves all currently loaded connections to the session directory
public Save ( ) : void
return void

UnloadService() public method

Unloads the service.
public UnloadService ( ) : void
return void