public PostgreSqlEventStorage(IOptions <PostgreSqlOptions> postgreSqlOptions, IOptions <PoleEventBusOption> producerOptions, IEventStorageInitializer eventStorageInitializer) { this.producerOptions = producerOptions.Value; this.options = postgreSqlOptions.Value; this.eventStorageInitializer = eventStorageInitializer; tableName = eventStorageInitializer.GetTableName(); }
public PostgreSqlEventStorageInitializer(IOptions <PostgreSqlOptions> options, ILogger <PostgreSqlEventStorageInitializer> logger) { this.options = options.Value; this.logger = logger; }