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;
|
||||
|
||||
case DatabaseProvider.SqlServer:
|
||||
var sinkOptions = new Serilog.Sinks.MSSqlServer.MSSqlServerSinkOptions
|
||||
{
|
||||
TableName = TableNameResolver.GetFullTableName(nameof(TableNameEnum.LogEntry)),
|
||||
AutoCreateSqlTable = false
|
||||
};
|
||||
|
||||
loggerConfig = loggerConfig.WriteTo.MSSqlServer(
|
||||
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
|
||||
tableName: TableNameResolver.GetFullTableName(nameof(TableNameEnum.LogEntry)),
|
||||
autoCreateSqlTable: false,
|
||||
sinkOptions: sinkOptions,
|
||||
columnOptions: new Serilog.Sinks.MSSqlServer.ColumnOptions()
|
||||
);
|
||||
break;
|
||||
|
|
@ -147,7 +152,7 @@ public class Program
|
|||
|
||||
var app = builder.Build();
|
||||
app.UseCors("Dynamic");
|
||||
|
||||
|
||||
// Dynamic Assembly Registration Delegate Setup
|
||||
DynamicServiceCompiler.NotifyAssemblyRegistration = DynamicAssemblyRegistrationService.RequestAssemblyRegistration;
|
||||
await app.InitializeApplicationAsync();
|
||||
|
|
|
|||
Loading…
Reference in a new issue