@@ -55,7 +55,6 @@ private static readonly IMicrosoftExtensionsConnectionStringProvider MicrosoftEx
5555 /// <param name="schemaName">The schema name.</param>
5656 /// <param name="needAutoCreateTable">A <seealso cref="bool"/> value indicating whether the table should be auto created or not.</param>
5757 /// <param name="needAutoCreateSchema">Specifies whether the schema should be auto-created if it does not already exist or not.</param>
58- /// <param name="failureCallback">The failure callback.</param>
5958 /// <param name="appConfiguration">The app configuration section. Required if the connection string is a name.</param>
6059 /// <param name="onCreateTableCallback">The on create table callback.</param>
6160 /// <param name="onCreateSchemaCallback">The on create schema callback.</param>
@@ -76,7 +75,6 @@ public static LoggerConfiguration PostgreSQL(
7675 string schemaName = "" ,
7776 bool needAutoCreateTable = false ,
7877 bool needAutoCreateSchema = false ,
79- Action < Exception > ? failureCallback = null ,
8078 IConfiguration ? appConfiguration = null ,
8179 Action < CreateTableEventArgs > ? onCreateTableCallback = null ,
8280 Action < CreateSchemaEventArgs > ? onCreateSchemaCallback = null ,
@@ -107,7 +105,6 @@ public static LoggerConfiguration PostgreSQL(
107105 schemaName ,
108106 needAutoCreateTable ,
109107 needAutoCreateSchema ,
110- failureCallback ,
111108 onCreateTableCallback ,
112109 onCreateSchemaCallback ,
113110 retentionTime ) ;
@@ -140,7 +137,6 @@ public static LoggerConfiguration PostgreSQL(
140137 /// <param name="schemaName">The schema name.</param>
141138 /// <param name="needAutoCreateTable">A <seealso cref="bool"/> value indicating whether the table should be auto created or not.</param>
142139 /// <param name="needAutoCreateSchema">Specifies whether the schema should be auto-created if it does not already exist or not.</param>
143- /// <param name="failureCallback">The failure callback.</param>
144140 /// <param name="appConfiguration">The app configuration section. Required if the connection string is a name.</param>
145141 /// <param name="onCreateTableCallback">The on create table callback.</param>
146142 /// <param name="onCreateSchemaCallback">The on create schema callback.</param>
@@ -162,7 +158,6 @@ public static LoggerConfiguration PostgreSQL(
162158 string schemaName = "" ,
163159 bool needAutoCreateTable = false ,
164160 bool needAutoCreateSchema = false ,
165- Action < Exception > ? failureCallback = null ,
166161 IConfiguration ? appConfiguration = null ,
167162 Action < CreateTableEventArgs > ? onCreateTableCallback = null ,
168163 Action < CreateSchemaEventArgs > ? onCreateSchemaCallback = null ,
@@ -238,7 +233,6 @@ public static LoggerConfiguration PostgreSQL(
238233 schemaName ,
239234 needAutoCreateTable ,
240235 needAutoCreateSchema ,
241- failureCallback ,
242236 onCreateTableCallback ,
243237 onCreateSchemaCallback ,
244238 retentionTime ) ;
@@ -272,7 +266,6 @@ public static LoggerConfiguration PostgreSQL(
272266 schemaName ,
273267 needAutoCreateTable ,
274268 needAutoCreateSchema ,
275- failureCallback ,
276269 onCreateTableCallback ,
277270 onCreateSchemaCallback ) ;
278271
@@ -300,7 +293,6 @@ public static LoggerConfiguration PostgreSQL(
300293 /// <param name="schemaName">The schema name.</param>
301294 /// <param name="needAutoCreateTable">A <seealso cref="bool"/> value indicating whether the table should be auto created or not.</param>
302295 /// <param name="needAutoCreateSchema">Specifies whether the schema should be auto-created if it does not already exist or not.</param>
303- /// <param name="failureCallback">The failure callback.</param>
304296 /// <param name="appConfiguration">The app configuration section. Required if the connection string is a name.</param>
305297 /// <param name="onCreateTableCallback">The on create table callback.</param>
306298 /// <param name="onCreateSchemaCallback">The on create schema callback.</param>
@@ -317,7 +309,6 @@ public static LoggerConfiguration PostgreSQL(
317309 string schemaName = "" ,
318310 bool needAutoCreateTable = false ,
319311 bool needAutoCreateSchema = false ,
320- Action < Exception > ? failureCallback = null ,
321312 IConfiguration ? appConfiguration = null ,
322313 Action < CreateTableEventArgs > ? onCreateTableCallback = null ,
323314 Action < CreateSchemaEventArgs > ? onCreateSchemaCallback = null ,
@@ -346,7 +337,6 @@ public static LoggerConfiguration PostgreSQL(
346337 schemaName ,
347338 needAutoCreateTable ,
348339 needAutoCreateSchema ,
349- failureCallback ,
350340 onCreateTableCallback ,
351341 onCreateSchemaCallback ,
352342 retentionTime ) ;
@@ -391,7 +381,6 @@ internal static IDictionary<string, ColumnWriterBase> ClearQuotationMarksFromCol
391381 /// <param name="schemaName">The schema name.</param>
392382 /// <param name="needAutoCreateTable">A <seealso cref="bool"/> value indicating whether the table should be auto created or not.</param>
393383 /// <param name="needAutoCreateSchema">Specifies whether the schema should be auto-created if it does not already exist or not.</param>
394- /// <param name="failureCallback">The failure callback.</param>
395384 /// <param name="appConfiguration">The app configuration section. Required if the connection string is a name.</param>
396385 /// <param name="onCreateTableCallback">The on create table callback.</param>
397386 /// <param name="onCreateSchemaCallback">The on create schema callback.</param>
@@ -409,7 +398,6 @@ public static LoggerConfiguration PostgreSQL(
409398 string schemaName = "" ,
410399 bool needAutoCreateTable = false ,
411400 bool needAutoCreateSchema = false ,
412- Action < Exception > ? failureCallback = null ,
413401 IConfiguration ? appConfiguration = null ,
414402 Action < CreateTableEventArgs > ? onCreateTableCallback = null ,
415403 Action < CreateSchemaEventArgs > ? onCreateSchemaCallback = null ,
@@ -483,7 +471,6 @@ public static LoggerConfiguration PostgreSQL(
483471 schemaName ,
484472 needAutoCreateTable ,
485473 needAutoCreateSchema ,
486- failureCallback ,
487474 onCreateTableCallback ,
488475 onCreateSchemaCallback ,
489476 retentionTime ) ;
@@ -510,7 +497,6 @@ public static LoggerConfiguration PostgreSQL(
510497 schemaName ,
511498 needAutoCreateTable ,
512499 needAutoCreateSchema ,
513- failureCallback ,
514500 onCreateTableCallback ,
515501 onCreateSchemaCallback ,
516502 retentionTime ) ;
@@ -532,7 +518,6 @@ public static LoggerConfiguration PostgreSQL(
532518 /// <param name="schemaName">The schema name.</param>
533519 /// <param name="needAutoCreateTable">A <seealso cref="bool"/> value indicating whether the table should be auto created or not.</param>
534520 /// <param name="needAutoCreateSchema">Specifies whether the schema should be auto-created if it does not already exist or not.</param>
535- /// <param name="failureCallback">The failure callback.</param>
536521 /// <param name="onCreateTableCallback">The on create table callback.</param>
537522 /// <param name="onCreateSchemaCallback">The on create schema callback.</param>
538523 /// <param name="retentionTime">The retention time of the log entries in the database.</param>
@@ -548,14 +533,12 @@ internal static PostgreSqlOptions GetOptions(
548533 string schemaName ,
549534 bool needAutoCreateTable ,
550535 bool needAutoCreateSchema ,
551- Action < Exception > ? failureCallback ,
552536 Action < CreateTableEventArgs > ? onCreateTableCallback ,
553537 Action < CreateSchemaEventArgs > ? onCreateSchemaCallback ,
554538 TimeSpan ? retentionTime = null )
555539 {
556540 var columnOptionsLocal = ClearQuotationMarksFromColumnOptions ( columnOptions ?? ColumnOptions . Default ) ;
557541
558- #pragma warning disable CS0618 // Typ oder Element ist veraltet
559542 return new PostgreSqlOptions
560543 {
561544 ConnectionString = connectionString ,
@@ -569,12 +552,9 @@ internal static PostgreSqlOptions GetOptions(
569552 SchemaName = schemaName . Replace ( "\" " , string . Empty ) ,
570553 NeedAutoCreateTable = needAutoCreateTable ,
571554 NeedAutoCreateSchema = needAutoCreateSchema ,
572- // Todo: Remove this in next version!
573- FailureCallback = failureCallback ,
574555 OnCreateTable = onCreateTableCallback ,
575556 OnCreateSchema = onCreateSchemaCallback ,
576557 RetentionTime = retentionTime
577558 } ;
578- #pragma warning restore CS0618 // Typ oder Element ist veraltet
579559 }
580560}
0 commit comments