Class RecordersConfiguration
The database configuration for each recorder
Inheritance
System.Object
RecordersConfiguration
Implements
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class RecordersConfiguration : Object, IRecordersConfiguration
Constructors
RecordersConfiguration()
Declaration
public RecordersConfiguration()
Methods
AddConfiguration(Guid, String, String, String, String, Boolean)
The database configuration for each recorder
Declaration
public void AddConfiguration(Guid recorderId, string dbEngine, string dataSource, string connectionIdentifier, string connectionString, bool deleteSessionOnClose)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | recorderId | The recorder identifier. |
| System.String | dbEngine | The database engine. |
| System.String | dataSource | The data source. |
| System.String | connectionIdentifier | The connection identifier. |
| System.String | connectionString | The connection string. |
| System.Boolean | deleteSessionOnClose | if set to |
GetAllConfigs()
The database configuration for each recorder
Declaration
public IReadOnlyList<DbConfiguration> GetAllConfigs()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<DbConfiguration> |
GetRecordersConfiguration()
Gets the recorders configuration.
Declaration
public static RecordersConfiguration GetRecordersConfiguration()
Returns
| Type | Description |
|---|---|
| RecordersConfiguration |
RemoveConfiguration(Guid)
The database configuration for each recorder
Declaration
public void RemoveConfiguration(Guid recorderId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | recorderId | The recorder identifier. |
Events
NewDatabaseAdded
The database configuration for each recorder
Declaration
public event EventHandler<DbConfiguration> NewDatabaseAdded
Event Type
| Type | Description |
|---|---|
| System.EventHandler<DbConfiguration> |