You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
577 B
24 lines
577 B
using System.Collections.Immutable;
|
|
|
|
namespace Connected.Configuration
|
|
{
|
|
internal class DatabaseConfiguration : IDatabaseConfiguration
|
|
{
|
|
private List<string> _shards;
|
|
|
|
public DatabaseConfiguration()
|
|
{
|
|
/*
|
|
* TODO: read from config
|
|
*/
|
|
DefaultConnectionString = "server=PIT-ZBOOK\\sqlexpress; database=connected; trusted_connection=true;TrustServerCertificate=True;multiple active result sets=true";
|
|
|
|
_shards = new();
|
|
}
|
|
|
|
public string? DefaultConnectionString { get; init; }
|
|
|
|
public ImmutableList<string> Shards => _shards.ToImmutableList();
|
|
}
|
|
}
|