예제 #1
0
        public static DynamicCacheServiceBuilder <TKey, TAggregate> AddDynamicCacheService <TKey, TAggregate>(this IServiceCollection services, Action <DynamicCacheServiceBuilderOptions> cacheServiceConfiguration)
            where TAggregate : class, IAggregate <TKey>, new()
        {
            var options = new DynamicCacheServiceBuilderOptions(services);

            cacheServiceConfiguration(options);

            var builder = new DynamicCacheServiceBuilder <TKey, TAggregate>(options);

            builder.Initialize();

            return(builder);
        }
예제 #2
0
 public DynamicCacheServiceBuilder(DynamicCacheServiceBuilderOptions options)
 {
     Options = options;
 }