Example #1
0
 public static IEventFlowOptions UseEntityFrameworkSnapshotStore <TDbContext>(
     this IEventFlowOptions eventFlowOptions)
     where TDbContext : DbContext
 {
     return(eventFlowOptions
            .UseSnapshotStore <EntityFrameworkSnapshotPersistence <TDbContext> >());
 }
Example #2
0
 public static IEventFlowOptions UseMsSqlSnapshotStore(
     this IEventFlowOptions eventFlowOptions)
 {
     return(eventFlowOptions
            .UseSnapshotStore <MsSqlSnapshotPersistence>());
 }
 public static IEventFlowOptions UseInMemorySnapshotStore(
     this IEventFlowOptions eventFlowOptions)
 {
     return eventFlowOptions.UseSnapshotStore<InMemorySnapshotPersistence>(Lifetime.Singleton);
 }
 public static IEventFlowOptions UseAWSSnapshotStore(this IEventFlowOptions eventFlowOptions)
 {
     return(eventFlowOptions.UseSnapshotStore <DynamoDBSnapshotStore>());
 }