public MySqlEvenStoreConfigurator UseLocator( IRelationalEventStoreLocator relationalEventStoreLocator, Action <MySqlEventStoreOptions>?action = null) => ConfigureOptions(providerOptions => { var eventOptions = new MySqlEventStoreOptions { RelationalEventStoreLocator = relationalEventStoreLocator, }; action?.Invoke(eventOptions); providerOptions.EventLoaderOptions = eventOptions; providerOptions.EventSaverOptions = eventOptions; });
public PostgreSQLEvenStoreConfigurator UseLocator( IRelationalEventStoreLocator relationalEventStoreLocator, Action <PostgreSQLEventStoreOptions>?action = null) { ConfigureOptions(providerOptions => { var eventOptions = new PostgreSQLEventStoreOptions { RelationalEventStoreLocator = relationalEventStoreLocator, }; action?.Invoke(eventOptions); providerOptions.EventLoaderOptions = eventOptions; providerOptions.EventSaverOptions = eventOptions; }); return(this); }
GetNames(this IRelationalEventStoreLocator locator, IClaptrapIdentity identity) { return(locator.GetConnectionName(identity), locator.GetSchemaName(identity), locator.GetEventTableName(identity)); }