Example #1
0
        private static IChronicleBuilder ConfigureRedisPersistence(this IChronicleBuilder builder, ChronicleRedisSettings settings)
        {
            builder.Services.AddStackExchangeRedisCache(options =>
            {
                options.Configuration = settings.Configuration;
                options.InstanceName  = settings.InstanceName;
            });
            builder.UseSagaLog <RedisSagaLog>();
            builder.UseSagaStateRepository <RedisSagaStateRepository>();

            return(builder);
        }
Example #2
0
 public static IChronicleBuilder UseRedisPersistence(this IChronicleBuilder builder, ChronicleRedisSettings settings)
 {
     return(builder.ConfigureRedisPersistence(settings));
 }