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.
Connected.Framework/Connected.Configuration/DatabaseConfiguration.cs

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();
}
}