case DatabaseProvider.SqlServer eksik kullanım düzeltildi.
This commit is contained in:
parent
b74729c23e
commit
1fddab5797
1 changed files with 8 additions and 3 deletions
|
|
@ -54,10 +54,15 @@ public class Program
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DatabaseProvider.SqlServer:
|
case DatabaseProvider.SqlServer:
|
||||||
|
var sinkOptions = new Serilog.Sinks.MSSqlServer.MSSqlServerSinkOptions
|
||||||
|
{
|
||||||
|
TableName = TableNameResolver.GetFullTableName(nameof(TableNameEnum.LogEntry)),
|
||||||
|
AutoCreateSqlTable = false
|
||||||
|
};
|
||||||
|
|
||||||
loggerConfig = loggerConfig.WriteTo.MSSqlServer(
|
loggerConfig = loggerConfig.WriteTo.MSSqlServer(
|
||||||
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
|
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
|
||||||
tableName: TableNameResolver.GetFullTableName(nameof(TableNameEnum.LogEntry)),
|
sinkOptions: sinkOptions,
|
||||||
autoCreateSqlTable: false,
|
|
||||||
columnOptions: new Serilog.Sinks.MSSqlServer.ColumnOptions()
|
columnOptions: new Serilog.Sinks.MSSqlServer.ColumnOptions()
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
@ -147,7 +152,7 @@ public class Program
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
app.UseCors("Dynamic");
|
app.UseCors("Dynamic");
|
||||||
|
|
||||||
// Dynamic Assembly Registration Delegate Setup
|
// Dynamic Assembly Registration Delegate Setup
|
||||||
DynamicServiceCompiler.NotifyAssemblyRegistration = DynamicAssemblyRegistrationService.RequestAssemblyRegistration;
|
DynamicServiceCompiler.NotifyAssemblyRegistration = DynamicAssemblyRegistrationService.RequestAssemblyRegistration;
|
||||||
await app.InitializeApplicationAsync();
|
await app.InitializeApplicationAsync();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue