/// <summary> /// Registers the SQL EventStore /// </summary> public static void UseSqlEventStore(this IConfigureThisEventStore configuration) { configuration.AddConfigurationItem(SqlEventStore.ConnectionFactory, new DbConnectionFactory()); configuration.Register(config => new SqlEventStore(config)); }
private static void ConfigureEventStore(IConfigureThisEventStore config) { config.UseSqlEventStore(); }
/// <summary> /// Registers the InMemory EventStore /// </summary> public static void UseInMemoryEventStore(this IConfigureThisEventStore configuration) { configuration.AddConfigurationItem(InMemoryEventStore.EventDescriptors, new List <EventDescriptor>()); configuration.AddConfigurationItem(InMemoryEventStore.SnapshotDescriptors, new List <SnapshotDescriptor>()); configuration.Register(config => new InMemoryEventStore(config)); }