Esempio n. 1
0
 /// <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();
 }
Esempio n. 3
0
 /// <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));
 }