Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
namespace ServiceControl.Persistence.EFCore.PostgreSql;

using Microsoft.Extensions.Logging;
using ServiceControl.Infrastructure;
using ServiceControl.Persistence.EFCore.Abstractions;

class PostgreSqlPersistenceConfiguration : EFPersistenceConfigurationBase
{
public override IPersistence Create(PersistenceSettings settings)
{
// Temporary until the persister is fully implemented
LoggerUtil.CreateStaticLogger<PostgreSqlPersistenceConfiguration>()
.LogError("The PostgreSQL persistence is still under development and is not ready for use");

return new PostgreSqlPersistence((PostgreSqlPersisterSettings)settings);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
namespace ServiceControl.Persistence.EFCore.SqlServer;

using Microsoft.Extensions.Logging;
using ServiceControl.Infrastructure;
using ServiceControl.Persistence.EFCore.Abstractions;

class SqlServerPersistenceConfiguration : EFPersistenceConfigurationBase
{
public override IPersistence Create(PersistenceSettings settings)
{
// Temporary until the persister is fully implemented
LoggerUtil.CreateStaticLogger<SqlServerPersistenceConfiguration>()
.LogError("The SQL Server persistence is still under development and is not ready for use");

var sqlSettings = (SqlServerPersisterSettings)settings;

return new SqlServerPersistence(sqlSettings);
Expand Down
Loading