Exemplo n.º 1
0
 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);
 }
Exemplo n.º 3
0
 GetNames(this IRelationalEventStoreLocator locator, IClaptrapIdentity identity)
 {
     return(locator.GetConnectionName(identity), locator.GetSchemaName(identity),
            locator.GetEventTableName(identity));
 }